layout: make strips the titlebar with window controls
This commit is contained in:
@@ -245,11 +245,13 @@ impl Gallery {
|
||||
}),
|
||||
)
|
||||
.child(
|
||||
div()
|
||||
.flex_1()
|
||||
.min_h_0()
|
||||
.overflow_hidden()
|
||||
.child(Dock::new("gallery-dock", self.dock_state.clone())),
|
||||
div().flex_1().min_h_0().overflow_hidden().child(
|
||||
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(!state.read(cx).is_right_sidebar_visible())
|
||||
.traffic_light_pad(!state.read(cx).is_left_sidebar_visible()),
|
||||
),
|
||||
);
|
||||
|
||||
Shell::new("gallery-shell", state)
|
||||
|
||||
Reference in New Issue
Block a user