feat: add companion panels beside host tabs

This commit is contained in:
LukeGus committed 2026-10-19 21:46:02 -05:00
1 parent 3b3fd7f135
commit 802b3003d5
12 files changed
+706 -5

No files matched your search

+4 -1
View File
@@ -12,6 +12,7 @@ import {
type TabTypeDef,
} from "./tab-registry";
import { getPanel, type PanelDef } from "./panel-registry";
import { CompanionFrame } from "./CompanionFrame";
import {
markAdaptiveResourceUsed,
runAdaptiveBackgroundTask,
@@ -144,7 +145,9 @@ const RegisteredTab = memo(function RegisteredTab({
/>
);
return withTabSuspense(
def.panelFrame ? <PanelTabFrame>{content}</PanelTabFrame> : content,
<CompanionFrame tab={tab} isVisible={isVisible}>
{def.panelFrame ? <PanelTabFrame>{content}</PanelTabFrame> : content}
</CompanionFrame>,
);
});