layout: replace sidebar toggle slots with tab prefix and suffix

This commit is contained in:
2026-11-14 16:00:41 +07:00
parent bf8a92a133
commit 93860e3c1d
3 changed files with 41 additions and 84 deletions
+1 -2
View File
@@ -288,8 +288,7 @@ impl Gallery {
let center = Dock::new("gallery-dock", self.dock_state.clone())
// The pill bar is the titlebar strip whenever no right sidebar sits to its right.
.window_controls(!self.layout_state.read(cx).is_right_sidebar_visible())
.traffic_light_pad(!self.layout_state.read(cx).is_left_sidebar_visible())
.sidebar_toggles(self.layout_state.clone());
.traffic_light_pad(!self.layout_state.read(cx).is_left_sidebar_visible());
let right_sidebar = DockSidebar::new("gallery-dock-sidebar", self.dock_state.clone());