mirror of
https://github.com/l0ng-ai/openidea.git
synced 2026-11-24 16:04:21 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user