Generative: a picture with nothing to open takes no focus
A done result tracks its focus only beside its press, so a grid with no open handler leaves focus where it was. A decided comparison drops its empty verdict row, so no gap is left under the sides.
This commit is contained in:
1 parent
81d8d52a09
commit
03e36ab0ef
4 files changed
+46
-13
No files matched your search
+12
-10
@@ -173,16 +173,18 @@ impl RenderOnce for ABCompareView {
|
||||
.flex_col()
|
||||
.gap_3()
|
||||
.child(div().w_full().flex().flex_wrap().gap_3().children(sides))
|
||||
.child(
|
||||
div()
|
||||
.flex()
|
||||
.flex_wrap()
|
||||
.items_center()
|
||||
.gap_2()
|
||||
.text_size(theme.text_size(TextSize::Sm))
|
||||
.text_color(colors.fg_muted)
|
||||
.children(verdicts),
|
||||
)
|
||||
.when(!verdicts.is_empty(), |column| {
|
||||
column.child(
|
||||
div()
|
||||
.flex()
|
||||
.flex_wrap()
|
||||
.items_center()
|
||||
.gap_2()
|
||||
.text_size(theme.text_size(TextSize::Sm))
|
||||
.text_color(colors.fg_muted)
|
||||
.children(verdicts),
|
||||
)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user