agent: Polish single-file review toolbar controls (#29866)
This commit is contained in:
parent
545ae27079
commit
2e3baef299
6 changed files with 56 additions and 60 deletions
|
@ -105,23 +105,23 @@ impl Render for Toolbar {
|
|||
|
||||
v_flex()
|
||||
.group("toolbar")
|
||||
.p(DynamicSpacing::Base08.rems(cx))
|
||||
.relative()
|
||||
.when(has_left_items || has_right_items, |this| {
|
||||
this.gap(DynamicSpacing::Base08.rems(cx))
|
||||
})
|
||||
.border_b_1()
|
||||
.border_color(cx.theme().colors().border_variant)
|
||||
.relative()
|
||||
.bg(cx.theme().colors().toolbar_background)
|
||||
.when(has_left_items || has_right_items, |this| {
|
||||
this.child(
|
||||
h_flex()
|
||||
.min_h(rems_from_px(24.))
|
||||
.min_h_6()
|
||||
.justify_between()
|
||||
.gap(DynamicSpacing::Base08.rems(cx))
|
||||
.when(has_left_items, |this| {
|
||||
this.child(
|
||||
h_flex()
|
||||
.p(DynamicSpacing::Base08.rems(cx))
|
||||
.flex_auto()
|
||||
.justify_start()
|
||||
.overflow_x_hidden()
|
||||
|
@ -131,6 +131,8 @@ impl Render for Toolbar {
|
|||
.when(has_right_items, |this| {
|
||||
this.child(
|
||||
h_flex()
|
||||
.h_full()
|
||||
.flex_row_reverse()
|
||||
.map(|el| {
|
||||
if has_left_items {
|
||||
// We're using `flex_none` here to prevent some flickering that can occur when the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue