From 6fd5ab781d4943728a23c6179ab4ed979740b146 Mon Sep 17 00:00:00 2001 From: Tim Hartmann Date: Thu, 20 Aug 2026 10:41:11 +0400 Subject: [PATCH 1/3] fix(gui): keep the macOS traffic lights inside the collapsed sidebar --- crates/omnyssh-gui/ui/src/app.css | 6 ++++++ crates/omnyssh-gui/ui/src/lib/components/AppShell.svelte | 2 +- crates/omnyssh-gui/ui/src/lib/components/Sidebar.svelte | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/crates/omnyssh-gui/ui/src/app.css b/crates/omnyssh-gui/ui/src/app.css index 0052c50..b91c616 100644 --- a/crates/omnyssh-gui/ui/src/app.css +++ b/crates/omnyssh-gui/ui/src/app.css @@ -59,9 +59,15 @@ app.html pre-paint script so there is no layout shift. */ :root { --titlebar-h: 0px; + /* Collapsed sidebar width. The macOS traffic lights are anchored to the window, not + to the layout, and the cluster runs to x=69px — past a 3.5rem rail, whose right + border lands on the green button's left edge and leaves it over the content pane. + 5rem holds the whole cluster; the other platforms have no lights to clear. */ + --rail-w: 3.5rem; } :root[data-os='macos'] { --titlebar-h: 1.75rem; + --rail-w: 5rem; } html, diff --git a/crates/omnyssh-gui/ui/src/lib/components/AppShell.svelte b/crates/omnyssh-gui/ui/src/lib/components/AppShell.svelte index fdd795f..93fd113 100644 --- a/crates/omnyssh-gui/ui/src/lib/components/AppShell.svelte +++ b/crates/omnyssh-gui/ui/src/lib/components/AppShell.svelte @@ -27,7 +27,7 @@