From 37c56cbb87c3a26fd43ea2f629445f2f0793d666 Mon Sep 17 00:00:00 2001 From: Fabrice Bellamy Date: Sat, 21 Feb 2026 22:36:16 +0100 Subject: [PATCH] fix sidebar toggle button position when sidebar is minimized --- src/ui/rootview.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/rootview.rs b/src/ui/rootview.rs index 08e2071..fc39e30 100644 --- a/src/ui/rootview.rs +++ b/src/ui/rootview.rs @@ -142,7 +142,10 @@ impl Render for ApplicationRoot { let container = h_flex(); #[cfg(target_os = "macos")] - let container = h_flex().ml(gpui::px(-72.)); + let container = { + let offset = self.sidebar_width.min(gpui::px(72.)); + h_flex().ml(gpui::px(-offset.0)) + }; container .w_full()