dock: Hide suffix action when tab_panel is collapsed (#963)
This commit is contained in:
parent
60bebaf51f
commit
f183236d52
1 changed files with 21 additions and 19 deletions
|
|
@ -761,7 +761,8 @@ impl TabPanel {
|
||||||
))
|
))
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
.suffix(
|
.when(!self.collapsed, |this| {
|
||||||
|
this.suffix(
|
||||||
h_flex()
|
h_flex()
|
||||||
.items_center()
|
.items_center()
|
||||||
.top_0()
|
.top_0()
|
||||||
|
|
@ -780,6 +781,7 @@ impl TabPanel {
|
||||||
.child(self.render_toolbar(state, window, cx))
|
.child(self.render_toolbar(state, window, cx))
|
||||||
.when_some(right_dock_button, |this, btn| this.child(btn)),
|
.when_some(right_dock_button, |this, btn| this.child(btn)),
|
||||||
)
|
)
|
||||||
|
})
|
||||||
.into_any_element()
|
.into_any_element()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue