fix: link windows height

This commit is contained in:
2026-10-24 19:55:54 +02:00
parent 48547d1b4a
commit 31eeb96008
4 changed files with 85 additions and 21 deletions
+5 -1
View File
@@ -3,6 +3,9 @@
position: relative; position: relative;
display: flex; display: flex;
container-type: size;
height: var(--card-control-height);
color: var(--accent-brand); color: var(--accent-brand);
} }
@@ -14,6 +17,7 @@
flex: 1 1 auto; flex: 1 1 auto;
width: 100%; width: 100%;
height: 100%; height: 100%;
min-width: 0;
display: flex; display: flex;
align-items: center; align-items: center;
@@ -56,7 +60,7 @@
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 4cqh; width: 100cqh;
aspect-ratio: 1; aspect-ratio: 1;
color: var(--accent-brand); color: var(--accent-brand);
@@ -6,7 +6,7 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: var(--space-5); padding: var(--space-4);
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.5);
animation: copy-channel-fade-in var(--dur-base) var(--ease-standard); animation: copy-channel-fade-in var(--dur-base) var(--ease-standard);
@@ -27,6 +27,9 @@
max-height: 90vh; max-height: 90vh;
overflow-y: auto; overflow-y: auto;
user-select: none;
-webkit-user-select: none;
animation: copy-channel-scale-in var(--dur-base) var(--ease-standard); animation: copy-channel-scale-in var(--dur-base) var(--ease-standard);
} }
@@ -41,12 +44,15 @@
} }
} }
/* Header (matches miscellaneous section header) */
.copy-channel-modal__header { .copy-channel-modal__header {
margin-bottom: var(--space-5); margin-bottom: var(--space-3);
} }
.copy-channel-modal__header h2 { .copy-channel-modal__header h2 {
margin: 0; margin: 0;
font-size: var(--font-md); font-size: var(--font-md);
font-weight: var(--font-weight-semibold); font-weight: var(--font-weight-semibold);
color: var(--text-primary); color: var(--text-primary);
@@ -54,6 +60,7 @@
.copy-channel-modal__header p { .copy-channel-modal__header p {
margin: var(--space-1) 0 0; margin: var(--space-1) 0 0;
font-size: var(--font-sm); font-size: var(--font-sm);
line-height: 1.4; line-height: 1.4;
color: var(--text-muted); color: var(--text-muted);
@@ -67,13 +74,17 @@
gap: var(--space-3); gap: var(--space-3);
} }
/* Field (matches miscellaneous field) */
.copy-channel-modal__field { .copy-channel-modal__field {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: var(--space-2); gap: 0;
flex: 1; flex: 1;
min-width: 0; min-width: 0;
font-family: var(--font-mono);
} }
.copy-channel-modal__field label { .copy-channel-modal__field label {
@@ -81,6 +92,16 @@
color: var(--text-muted); 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 { .copy-channel-modal__arrow {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -98,21 +119,26 @@
} }
.copy-channel-modal__summary { .copy-channel-modal__summary {
margin: var(--space-3) 0 var(--space-5); margin: var(--space-3) 0 0;
font-size: var(--font-sm); font-size: var(--font-sm);
line-height: 1.4; line-height: 1.4;
color: var(--text-muted); color: var(--text-muted);
} }
/* Footer actions */ /* Footer actions (matches miscellaneous actions) */
.copy-channel-modal__actions { .copy-channel-modal__actions {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
align-items: center;
gap: var(--space-3); gap: var(--space-3);
margin-top: var(--space-2);
} }
/* Mobile */
@media (max-width: 600px) { @media (max-width: 600px) {
.copy-channel-modal__transfer { .copy-channel-modal__transfer {
flex-direction: column; flex-direction: column;
@@ -120,7 +146,11 @@
} }
.copy-channel-modal__arrow { .copy-channel-modal__arrow {
height: auto;
transform: rotate(90deg); transform: rotate(90deg);
} }
.copy-channel-modal__actions {
justify-content: flex-start;
flex-wrap: wrap;
}
} }
@@ -94,9 +94,11 @@ function CopyChannelModal({
<ChoiceSelect<string> <ChoiceSelect<string>
id="copy-channel-source" id="copy-channel-source"
className="copy-channel-modal__choice-select"
value={source} value={source}
options={ALL_CHANNELS} options={ALL_CHANNELS}
onChange={handleSourceChange} onChange={handleSourceChange}
style={{ color: 'var(--font-primary)' }}
/> />
</div> </div>
@@ -111,9 +113,11 @@ function CopyChannelModal({
<ChoiceSelect<string> <ChoiceSelect<string>
id="copy-channel-destination" id="copy-channel-destination"
className="copy-channel-modal__choice-select"
value={destination} value={destination}
options={destinationOptions} options={destinationOptions}
onChange={setDestination} onChange={setDestination}
style={{ color: 'var(--font-primary)' }}
/> />
</div> </div>
</div> </div>
@@ -6,11 +6,9 @@
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
padding: var(--space-4);
padding: var(--space-5);
background: rgba(0, 0, 0, 0.5); background: rgba(0, 0, 0, 0.5);
animation: link-channels-fade-in var(--dur-base) var(--ease-standard); animation: link-channels-fade-in var(--dur-base) var(--ease-standard);
} }
@@ -27,9 +25,11 @@
width: 100%; width: 100%;
max-width: 480px; max-width: 480px;
max-height: 90vh; max-height: 90vh;
overflow-y: auto; overflow-y: auto;
user-select: none;
-webkit-user-select: none;
animation: link-channels-scale-in var(--dur-base) var(--ease-standard); animation: link-channels-scale-in var(--dur-base) var(--ease-standard);
} }
@@ -44,8 +44,10 @@
} }
} }
/* Header (matches miscellaneous section header) */
.link-channels-modal__header { .link-channels-modal__header {
margin-bottom: var(--space-4); margin-bottom: var(--space-3);
} }
.link-channels-modal__header h2 { .link-channels-modal__header h2 {
@@ -64,13 +66,20 @@
color: var(--text-muted); color: var(--text-muted);
} }
/* Mode toggle */ /* Mode toggle (fixed control height, matches miscellaneous controls) */
.link-channels-modal__mode-toggle { .link-channels-modal__mode-toggle {
display: inline-flex; 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); padding: var(--space-1);
margin-bottom: var(--space-5); margin-bottom: var(--space-3);
background: var(--bg-panel); background: var(--bg-panel);
border: var(--border-width) solid var(--border-hairline); border: var(--border-width) solid var(--border-hairline);
@@ -78,7 +87,11 @@
} }
.link-channels-modal__mode-btn { .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; background: transparent;
color: var(--text-muted); color: var(--text-muted);
@@ -86,7 +99,7 @@
border: none; border: none;
border-radius: var(--radius-sm); border-radius: var(--radius-sm);
font-family: var(--font-ui); font-family: var(--font-mono);
font-size: var(--font-sm); font-size: var(--font-sm);
font-weight: var(--font-weight-semibold); font-weight: var(--font-weight-semibold);
@@ -108,7 +121,7 @@
display: grid; display: grid;
gap: var(--space-1); gap: var(--space-1);
margin-bottom: var(--space-5); margin-bottom: 0;
} }
.link-matrix__corner { .link-matrix__corner {
@@ -137,7 +150,10 @@
.link-matrix__cell { .link-matrix__cell {
aspect-ratio: 1 / 1; aspect-ratio: 1 / 1;
min-width: 32px; width: 24px;
height: 24px;
min-width: 0;
justify-self: center;
border-radius: var(--radius-sm); border-radius: var(--radius-sm);
} }
@@ -196,16 +212,26 @@
border-color: var(--border-hairline); border-color: var(--border-hairline);
} }
/* Footer actions */ /* Footer actions (matches miscellaneous actions) */
.link-channels-modal__actions { .link-channels-modal__actions {
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
align-items: center;
gap: var(--space-3); gap: var(--space-3);
margin-top: var(--space-2);
} }
/* Mobile */
@media (max-width: 600px) { @media (max-width: 600px) {
.link-matrix__cell { .link-matrix__cell {
min-width: 26px; min-width: 26px;
} }
.link-channels-modal__actions {
justify-content: flex-start;
flex-wrap: wrap;
}
} }