status_bar: Only show divider for left dock (#24178)

Follow up to https://github.com/zed-industries/zed/pull/24114

Just fixing the UI so that the divider only shows for the
left-positioned items.

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2025-02-04 05:02:29 -03:00 committed by GitHub
parent 556b0eb4f1
commit e5c3273486
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -876,7 +876,7 @@ impl Render for PanelButtons {
h_flex()
.gap_1()
.children(buttons)
.when(has_buttons, |this| {
.when(has_buttons && dock.position == DockPosition::Left, |this| {
this.child(Divider::vertical().color(DividerColor::Border))
})
}