Skip to content

The IDE you know, rebuilt in Rust. IntelliJ IDEA–style keymap, tool windows and search-everywhere in a fast native app: editor, code insight, debugger, Git, terminal, database and HTTP clients for 60+ languages.

fix(settings): fit long labels in aligned settings forms (#1643)

l0ng-ai086c89df5b92
diff --git a/src/features/settings/pages/Workflow.module.css b/src/features/settings/pages/Workflow.module.css
index 5ba74423a..5f004af6e 100644
--- a/src/features/settings/pages/Workflow.module.css
+++ b/src/features/settings/pages/Workflow.module.css
@@ -213,6 +213,16 @@
vertical-align: -3px;
margin-right: 6px;
}
+/* The aligned rows of a section share one label column, as wide as its widest label. */
+.toolsLayout *:has(> .alignedRow) {
+ display: grid;
+ grid-template-columns: minmax(130px, max-content) minmax(0, 1fr);
+ column-gap: 8px;
+ align-content: start;
+}
+.toolsLayout *:has(> .alignedRow) > * {
+ grid-column: 1 / -1;
+}
.toolsLayout .alignedRow {
- grid-template-columns: 130px minmax(0, 1fr);
+ grid-template-columns: subgrid;
}