mirror of
https://github.com/librekeys/picoforge.git
synced 2026-07-28 08:01:19 -07:00
fix sidebar toggle button position when sidebar is minimized
This commit is contained in:
+4
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user