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 <[email protected]>
Цей коміт міститься в:
lleviathe authored and GitHub committed 2026-11-18 21:30:26 +08:00
1 джерело 281b093774
коміт 4dfdbd35fd
1 file changed
+5
+5
Переглянути файл
@@ -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;