forked from reya/gpui-native-kit
fix: make full titlebar strip draggable in dock and sidebar
This commit is contained in:
+12
-11
@@ -1085,18 +1085,19 @@ fn render_pane(
|
||||
})
|
||||
.pr(padding_x)
|
||||
.child(tabs)
|
||||
.child(titlebar_strip(
|
||||
div()
|
||||
.id(SharedString::from(format!(
|
||||
"{dock_id}-pane-{}-strip",
|
||||
pane.key
|
||||
)))
|
||||
.flex_1()
|
||||
.self_stretch(),
|
||||
window,
|
||||
cx,
|
||||
))
|
||||
.when(titlebar.window_controls, |bar| {
|
||||
bar.child(titlebar_strip(
|
||||
div()
|
||||
.id(SharedString::from(format!(
|
||||
"{dock_id}-pane-{}-strip",
|
||||
pane.key
|
||||
)))
|
||||
.flex_1(),
|
||||
window,
|
||||
cx,
|
||||
))
|
||||
.child(WindowControls::new(SharedString::from(format!(
|
||||
bar.child(WindowControls::new(SharedString::from(format!(
|
||||
"{dock_id}-pane-{}-controls",
|
||||
pane.key
|
||||
))))
|
||||
|
||||
Reference in New Issue
Block a user