From 4dfdbd35fd9837311ea156dfd39ec6d55e8490a6 Mon Sep 17 00:00:00 2001 From: lleviathe <95321986+lleviathe@users.noreply.github.com> Date: Wed, 18 Nov 2026 17:30:26 +0400 Subject: [PATCH] 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> --- src/features/settings/components/Form.module.css | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/features/settings/components/Form.module.css b/src/features/settings/components/Form.module.css index d7fea7a6e..e18a86ba2 100644 --- a/src/features/settings/components/Form.module.css +++ b/src/features/settings/components/Form.module.css @@ -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;