mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-09-24 15:49:09 +00:00
71687491f0
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>
16 lines
457 B
TypeScript
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]',
|
|
);
|
|
}
|