Files
Netcatty/components/terminalLayer/terminalLayerSidePanelHiddenWrapper.ts
T
bincxz 71687491f0 Fix terminal theme mode switching and speed up workspace tab changes.
Keep connection dialog and chrome surfaces in sync when toggling follow-app vs manual themes, and isolate side-panel live state per tab so switching workspace tabs no longer re-renders every mounted panel.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-28 03:28:50 +08:00

16 lines
457 B
TypeScript

import { cn } from '../../lib/utils';
export function sidePanelHiddenPanelClassName(hidden: boolean): string {
return cn(
'absolute inset-0 z-10',
hidden && 'hidden [content-visibility:hidden] [contain:strict]',
);
}
export function sidePanelHiddenNotesPanelClassName(hidden: boolean): string {
return cn(
'absolute inset-0 z-20 bg-background text-foreground',
hidden && 'hidden [content-visibility:hidden] [contain:strict]',
);
}