mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 22:25:24 +00:00
feat: add companion panels beside host tabs
This commit is contained in:
1 parent
3b3fd7f135
commit
802b3003d5
12 files changed
+706
-5
No files matched your search
@@ -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>,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user