From 31eeb960087a16b2dffbdeb7c73889180404fc57 Mon Sep 17 00:00:00 2001 From: LucasDLTG Date: Sat, 24 Oct 2026 19:55:54 +0200 Subject: [PATCH] fix: link windows height --- src/components/ChoiceSelect/ChoiceSelect.css | 6 ++- .../MiscellaneousSection/CopyChannelModal.css | 44 +++++++++++++--- .../MiscellaneousSection/CopyChannelModal.tsx | 4 ++ .../LinkChannelsModal.css | 52 ++++++++++++++----- 4 files changed, 85 insertions(+), 21 deletions(-) diff --git a/src/components/ChoiceSelect/ChoiceSelect.css b/src/components/ChoiceSelect/ChoiceSelect.css index 6e373ae..776d2b1 100644 --- a/src/components/ChoiceSelect/ChoiceSelect.css +++ b/src/components/ChoiceSelect/ChoiceSelect.css @@ -2,6 +2,9 @@ .choice-select { position: relative; display: flex; + + container-type: size; + height: var(--card-control-height); color: var(--accent-brand); } @@ -14,6 +17,7 @@ flex: 1 1 auto; width: 100%; height: 100%; + min-width: 0; display: flex; align-items: center; @@ -56,7 +60,7 @@ align-items: center; justify-content: center; - width: 4cqh; + width: 100cqh; aspect-ratio: 1; color: var(--accent-brand); diff --git a/src/features/dsp408/components/MiscellaneousSection/CopyChannelModal.css b/src/features/dsp408/components/MiscellaneousSection/CopyChannelModal.css index 62dd37c..23a5a31 100644 --- a/src/features/dsp408/components/MiscellaneousSection/CopyChannelModal.css +++ b/src/features/dsp408/components/MiscellaneousSection/CopyChannelModal.css @@ -6,7 +6,7 @@ display: flex; align-items: center; justify-content: center; - padding: var(--space-5); + padding: var(--space-4); background: rgba(0, 0, 0, 0.5); animation: copy-channel-fade-in var(--dur-base) var(--ease-standard); @@ -27,6 +27,9 @@ max-height: 90vh; overflow-y: auto; + user-select: none; + -webkit-user-select: none; + animation: copy-channel-scale-in var(--dur-base) var(--ease-standard); } @@ -41,12 +44,15 @@ } } +/* Header (matches miscellaneous section header) */ + .copy-channel-modal__header { - margin-bottom: var(--space-5); + margin-bottom: var(--space-3); } .copy-channel-modal__header h2 { margin: 0; + font-size: var(--font-md); font-weight: var(--font-weight-semibold); color: var(--text-primary); @@ -54,6 +60,7 @@ .copy-channel-modal__header p { margin: var(--space-1) 0 0; + font-size: var(--font-sm); line-height: 1.4; color: var(--text-muted); @@ -67,13 +74,17 @@ gap: var(--space-3); } +/* Field (matches miscellaneous field) */ + .copy-channel-modal__field { display: flex; flex-direction: column; - gap: var(--space-2); + gap: 0; flex: 1; min-width: 0; + + font-family: var(--font-mono); } .copy-channel-modal__field label { @@ -81,6 +92,16 @@ color: var(--text-muted); } +/* Fixed control height (matches miscellaneous choice select) */ + +.copy-channel-modal__choice-select { + height: var(--card-control-height); + min-height: var(--card-control-height); + max-height: var(--card-control-height); + box-sizing: border-box; + flex-shrink: 0; +} + .copy-channel-modal__arrow { display: flex; align-items: center; @@ -98,21 +119,26 @@ } .copy-channel-modal__summary { - margin: var(--space-3) 0 var(--space-5); + margin: var(--space-3) 0 0; font-size: var(--font-sm); line-height: 1.4; color: var(--text-muted); } -/* Footer actions */ +/* Footer actions (matches miscellaneous actions) */ .copy-channel-modal__actions { display: flex; justify-content: flex-end; + align-items: center; gap: var(--space-3); + + margin-top: var(--space-2); } +/* Mobile */ + @media (max-width: 600px) { .copy-channel-modal__transfer { flex-direction: column; @@ -120,7 +146,11 @@ } .copy-channel-modal__arrow { - height: auto; transform: rotate(90deg); } -} + + .copy-channel-modal__actions { + justify-content: flex-start; + flex-wrap: wrap; + } +} \ No newline at end of file diff --git a/src/features/dsp408/components/MiscellaneousSection/CopyChannelModal.tsx b/src/features/dsp408/components/MiscellaneousSection/CopyChannelModal.tsx index 3a05c30..2c68c98 100644 --- a/src/features/dsp408/components/MiscellaneousSection/CopyChannelModal.tsx +++ b/src/features/dsp408/components/MiscellaneousSection/CopyChannelModal.tsx @@ -94,9 +94,11 @@ function CopyChannelModal({ id="copy-channel-source" + className="copy-channel-modal__choice-select" value={source} options={ALL_CHANNELS} onChange={handleSourceChange} + style={{ color: 'var(--font-primary)' }} /> @@ -111,9 +113,11 @@ function CopyChannelModal({ id="copy-channel-destination" + className="copy-channel-modal__choice-select" value={destination} options={destinationOptions} onChange={setDestination} + style={{ color: 'var(--font-primary)' }} /> diff --git a/src/features/dsp408/components/MiscellaneousSection/LinkChannelsModal.css b/src/features/dsp408/components/MiscellaneousSection/LinkChannelsModal.css index 9ffb467..af8548f 100644 --- a/src/features/dsp408/components/MiscellaneousSection/LinkChannelsModal.css +++ b/src/features/dsp408/components/MiscellaneousSection/LinkChannelsModal.css @@ -6,11 +6,9 @@ display: flex; align-items: center; justify-content: center; - - padding: var(--space-5); + padding: var(--space-4); background: rgba(0, 0, 0, 0.5); - animation: link-channels-fade-in var(--dur-base) var(--ease-standard); } @@ -27,9 +25,11 @@ width: 100%; max-width: 480px; max-height: 90vh; - overflow-y: auto; + user-select: none; + -webkit-user-select: none; + animation: link-channels-scale-in var(--dur-base) var(--ease-standard); } @@ -44,8 +44,10 @@ } } +/* Header (matches miscellaneous section header) */ + .link-channels-modal__header { - margin-bottom: var(--space-4); + margin-bottom: var(--space-3); } .link-channels-modal__header h2 { @@ -64,13 +66,20 @@ color: var(--text-muted); } -/* Mode toggle */ +/* Mode toggle (fixed control height, matches miscellaneous controls) */ .link-channels-modal__mode-toggle { display: inline-flex; + align-items: stretch; + + height: var(--card-control-height); + min-height: var(--card-control-height); + max-height: var(--card-control-height); + box-sizing: border-box; + flex-shrink: 0; padding: var(--space-1); - margin-bottom: var(--space-5); + margin-bottom: var(--space-3); background: var(--bg-panel); border: var(--border-width) solid var(--border-hairline); @@ -78,7 +87,11 @@ } .link-channels-modal__mode-btn { - padding: var(--space-2) var(--space-4); + display: flex; + align-items: center; + justify-content: center; + + padding: 0 var(--space-4); background: transparent; color: var(--text-muted); @@ -86,7 +99,7 @@ border: none; border-radius: var(--radius-sm); - font-family: var(--font-ui); + font-family: var(--font-mono); font-size: var(--font-sm); font-weight: var(--font-weight-semibold); @@ -108,7 +121,7 @@ display: grid; gap: var(--space-1); - margin-bottom: var(--space-5); + margin-bottom: 0; } .link-matrix__corner { @@ -137,7 +150,10 @@ .link-matrix__cell { aspect-ratio: 1 / 1; - min-width: 32px; + width: 24px; + height: 24px; + min-width: 0; + justify-self: center; border-radius: var(--radius-sm); } @@ -196,16 +212,26 @@ border-color: var(--border-hairline); } -/* Footer actions */ +/* Footer actions (matches miscellaneous actions) */ .link-channels-modal__actions { display: flex; justify-content: flex-end; + align-items: center; gap: var(--space-3); + + margin-top: var(--space-2); } +/* Mobile */ + @media (max-width: 600px) { .link-matrix__cell { min-width: 26px; } -} + + .link-channels-modal__actions { + justify-content: flex-start; + flex-wrap: wrap; + } +} \ No newline at end of file