fix sidebar toggle button position when sidebar is minimized

This commit is contained in:
Fabrice Bellamy
2026-02-21 22:36:16 +01:00
parent f6caf33e34
commit 37c56cbb87
+4 -1
View File
@@ -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()