From f8f4f22daa0e33e0afeb1983b490696b9614e8ac Mon Sep 17 00:00:00 2001 From: silverwind Date: Fri, 13 Feb 2026 06:34:27 +0100 Subject: [PATCH] Restore line-height "em" units in dropdown CSS and disable stylelint rule Co-Authored-By: Claude Opus 4.6 --- stylelint.config.js | 2 +- web_src/css/modules/dropdown.css | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/stylelint.config.js b/stylelint.config.js index 42edf76f43..3e6be3c248 100644 --- a/stylelint.config.js +++ b/stylelint.config.js @@ -125,7 +125,7 @@ export default { 'csstools/value-no-unknown-custom-properties': [true, {importFrom: cssVarFiles}], 'declaration-block-no-duplicate-properties': [true, {ignore: ['consecutive-duplicates-with-different-values']}], 'declaration-block-no-redundant-longhand-properties': [true, {ignoreShorthands: ['flex-flow', 'overflow', 'grid-template']}], - 'declaration-property-unit-disallowed-list': {'line-height': ['em']}, + 'declaration-property-unit-disallowed-list': null, 'declaration-property-value-disallowed-list': {'word-break': ['break-word']}, 'font-family-name-quotes': 'always-where-recommended', 'function-name-case': 'lower', diff --git a/web_src/css/modules/dropdown.css b/web_src/css/modules/dropdown.css index 3ef39763f9..9fc8974091 100644 --- a/web_src/css/modules/dropdown.css +++ b/web_src/css/modules/dropdown.css @@ -204,7 +204,7 @@ select.ui.dropdown { .ui.selection.dropdown { cursor: pointer; overflow-wrap: break-word; - line-height: 1; + line-height: 1em; white-space: normal; outline: 0; transform: rotateZ(0deg); @@ -231,7 +231,7 @@ select.ui.dropdown { position: absolute; width: auto; height: auto; - line-height: 1.21428571; + line-height: 1.21428571em; top: 0.78571429em; right: 1em; z-index: 3; @@ -389,12 +389,12 @@ select.ui.dropdown { } .ui.search.selection.dropdown > input.search { - line-height: 1.21428571; + line-height: 1.21428571em; padding: 0.67857143em 3.2em 0.67857143em 1em; } .ui.search.selection.dropdown > span.sizer { - line-height: 1.21428571; + line-height: 1.21428571em; padding: 0.67857143em 3.2em 0.67857143em 1em; display: none; white-space: pre; @@ -497,7 +497,7 @@ select.ui.dropdown { padding: 0; max-width: 100%; margin: 0.45238095em 0 0.45238095em 0.64285714em; - line-height: 1.21428571; + line-height: 1.21428571em; } .ui.multiple.dropdown > .text.default { @@ -526,7 +526,7 @@ select.ui.dropdown { left: 0; padding: inherit; margin: 0.45238095em 0 0.45238095em 0.64285714em; - line-height: 1.21428571; + line-height: 1.21428571em; } .ui.multiple.search.dropdown > .label ~ .text { @@ -539,7 +539,7 @@ select.ui.dropdown { max-width: 100%; margin: 0.45238095em 0 0.45238095em 0.64285714em; width: 2.2em; - line-height: 1.21428571; + line-height: 1.21428571em; } .ui.dropdown .menu .active.item {