Fix toolbar spacing regressions (#29964)

Cleaning up as I introduced a few regressions in this PR:
https://github.com/zed-industries/zed/pull/29866.

Release Notes:

- N/A
This commit is contained in:
Danilo Leal 2025-05-05 22:28:35 -03:00 committed by GitHub
parent bdd911f89e
commit 377909a646
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 29 additions and 33 deletions

View file

@ -106,6 +106,7 @@ impl Render for Toolbar {
v_flex()
.group("toolbar")
.relative()
.p(DynamicSpacing::Base08.rems(cx))
.when(has_left_items || has_right_items, |this| {
this.gap(DynamicSpacing::Base08.rems(cx))
})
@ -121,7 +122,6 @@ impl Render for Toolbar {
.when(has_left_items, |this| {
this.child(
h_flex()
.p(DynamicSpacing::Base08.rems(cx))
.flex_auto()
.justify_start()
.overflow_x_hidden()