The VS Code of video editing, built for agents.
TypeScript
feat: enhance FloatingProjectHeader with fullscreen detection and traffic light visibility
konstantin-paulusa567775be14c
diff --git a/apps/web/src/components/sidebar-left/sidebar-left.tsx b/apps/web/src/components/sidebar-left/sidebar-left.tsxindex 19e7fb49..1f73a4c2 100644--- a/apps/web/src/components/sidebar-left/sidebar-left.tsx+++ b/apps/web/src/components/sidebar-left/sidebar-left.tsx@@ -208,11 +208,13 @@ export function ProjectHeader(props: ProjectHeaderProps) {}export function FloatingProjectHeader() {- const { isDesktop } = useEditorApi();+ const { isDesktop, isFullscreen } = useEditorApi();const { toggleUI } = useLayout();+ const belowTrafficLights = () => isDesktop && !isWindowsDesktop() && !isFullscreen();+return (- <div data-desktop={isDesktop} class="h-10 rounded-lg border border-border shrink-0 flex items-center px-2 gap-1 fixed top-4 data-[desktop=true]:top-10 left-4 z-30 bg-background shadow-lg">+ <div data-traffic-lights={belowTrafficLights()} class="h-10 rounded-lg border border-border shrink-0 flex items-center px-2 gap-1 fixed top-4 data-[traffic-lights=true]:top-10 left-4 z-30 bg-background shadow-lg"><ProjectMenu /><span class="text-xs text-muted-foreground font-450">Diffusion Studio</span><Button variant="ghost" size="icon" class="text-muted-foreground ml-2" onClick={toggleUI}>