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

Danilo Leal created

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

Change summary

crates/workspace/src/dock.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

crates/workspace/src/dock.rs 🔗

@@ -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))
             })
     }