From 0af4b6f4d1cd1970ef6e8dd17f5b67213648e6a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Padez?= Date: Fri, 7 Aug 2026 03:31:28 +0000 Subject: [PATCH] keep a maximized panel legible and amber its button --- .../src/components/Workspace/PanelSlot.tsx | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/src/workspaces/officerdev/src/components/Workspace/PanelSlot.tsx b/src/workspaces/officerdev/src/components/Workspace/PanelSlot.tsx index b45c3639..f618040a 100644 --- a/src/workspaces/officerdev/src/components/Workspace/PanelSlot.tsx +++ b/src/workspaces/officerdev/src/components/Workspace/PanelSlot.tsx @@ -196,6 +196,9 @@ const TrafficLights = ({ ); }; +// Locked screens get maximize only — no close, no clear. Green means "there is room to grow", amber +// means "this one is already filling the screen", the same way the two colours read on a mac window; +// `TrafficLights` below switches on the same pair. const MaximizeButton = ({ panelId }: { panelId: string }) => { const { maximizedPanelId, setMaximizedPanelId } = useWorkspace(); const isMaximized = maximizedPanelId === panelId; @@ -205,12 +208,12 @@ const MaximizeButton = ({ panelId }: { panelId: string }) => {