fix(settings): keep wrapped hints from overlapping the next row in WebKit (#4305)

WebKit sizes an auto grid row from its item's height at an earlier width, so after the Settings window narrowed, a hint that wrapped to one more line lay over the row below. The form group and row grids now use grid-auto-rows: min-content.

Co-authored-by: lleviathe <95321986+lleviathe@users.noreply.github.com>
This commit is contained in:
lleviathe
2026-11-18 21:30:26 +08:00
committed by GitHub
parent 281b093774
commit 4dfdbd35fd
@@ -27,6 +27,9 @@
.formGroup {
display: grid;
grid-template-columns: fit-content(45%) minmax(0, 1fr);
/* WebKit sizes an `auto` row from its item's height at an earlier width, so a hint or
control that wraps to one more line after the window narrows lies over the next row. */
grid-auto-rows: min-content;
column-gap: var(--space-2);
min-width: 0;
}
@@ -49,6 +52,8 @@
.row {
display: grid;
grid-template-columns: max-content minmax(0, 1fr);
/* See `.formGroup`. */
grid-auto-rows: min-content;
align-items: start;
column-gap: var(--space-2);
min-height: 28px;