fix(webui): keep context sidebar owned by the pane layout

This commit is contained in:
chengyongru authored and chengyongru committed 2026-11-06 13:09:44 +08:00
1 parent 5b9a4ea530
commit e4e04768d2
13 files changed
+271 -165

No files matched your search

@@ -49,6 +49,7 @@ export interface WorkbenchPane {
interface PaneRenderContext {
active: boolean;
multiplePanes: boolean;
headerPortalTarget: HTMLElement | null | undefined;
composerPortalTarget: HTMLElement | null | undefined;
navigationFrame: HTMLElement | null | undefined;
@@ -725,6 +726,7 @@ export function PaneWorkbench({
>
{renderPane(pane, {
active,
multiplePanes: displayedPanes.length > 1,
headerPortalTarget: chrome && displayedPanes.length > 1 ? headerPortalTarget : undefined,
composerPortalTarget: chrome ? composerPortalTarget : undefined,
navigationFrame: displayedPanes.length === 1 ? navigationFrame : undefined,