дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-11-26 20:46:22 +02: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 <[email protected]>
Цей коміт міститься в:
1 джерело
281b093774
коміт
4dfdbd35fd
1 file changed
+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;
|
||||
|
||||
Reference in new issue
Заблокувати користувача