From 883f52f9113fcccb69aa149608db1fafddba18de Mon Sep 17 00:00:00 2001 From: Lucas Date: Mon, 26 Oct 2026 16:01:08 +0100 Subject: [PATCH] fix: choice select arrow --- src/components/ChoiceSelect/ChoiceSelect.css | 22 +++++++++++++------- src/pages/AddDspPage/AddDspPage.css | 2 +- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/src/components/ChoiceSelect/ChoiceSelect.css b/src/components/ChoiceSelect/ChoiceSelect.css index 776d2b1..64de880 100644 --- a/src/components/ChoiceSelect/ChoiceSelect.css +++ b/src/components/ChoiceSelect/ChoiceSelect.css @@ -14,6 +14,7 @@ } .choice-select__trigger { + /* Keep the existing outer dimensions and border */ flex: 1 1 auto; width: 100%; height: 100%; @@ -24,7 +25,8 @@ justify-content: space-between; padding: 0; - padding-inline: 5%; + padding-left: 5%; + padding-right: 1%; background: transparent; border: var(--border-width) solid var(--border-hairline); @@ -32,7 +34,6 @@ font-family: var(--font-ui); font-size: 90%; - color: inherit; cursor: pointer; @@ -49,19 +50,25 @@ } .choice-select__label { + flex: 1 1 auto; + min-width: 0; + + text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .choice-select__chevron { - flex-shrink: 0; + flex: 0 0 auto; + align-self: stretch; + display: flex; align-items: center; justify-content: center; - width: 100cqh; - aspect-ratio: 1; + width: 1.5em; + height: 100%; color: var(--accent-brand); transition: transform var(--dur-base) var(--ease-standard); @@ -72,9 +79,10 @@ } .choice-select__chevron svg { - width: 50%; - height: auto; display: block; + width: auto; + height: 100%; + max-width: none; } .choice-select__option { diff --git a/src/pages/AddDspPage/AddDspPage.css b/src/pages/AddDspPage/AddDspPage.css index 8465e8b..4597e82 100644 --- a/src/pages/AddDspPage/AddDspPage.css +++ b/src/pages/AddDspPage/AddDspPage.css @@ -157,7 +157,7 @@ .add-dsp-form__selector { color: var(--text-primary); - height: 100%; + height: var(--card-control-height); } .add-dsp-form__field .choice-stepper__input {