fix(app): stop sensitive content options overlapping in long locales (#1762)

This commit is contained in:
Hampus authored and GitHub committed 2026-08-19 19:53:46 +02:00
1 parent b7de83f7fc
commit 7c82804df6
1 file changed
+27 -19
@@ -1,25 +1,22 @@
/* SPDX-License-Identifier: AGPL-3.0-or-later */ /* SPDX-License-Identifier: AGPL-3.0-or-later */
.container { .container {
display: flex; display: grid;
flex-direction: column; grid-template-columns: minmax(0, 1fr) minmax(14rem, min(max-content, 55%));
gap: 1rem; align-items: center;
column-gap: 1rem;
row-gap: 1.5rem;
} }
.row { .row {
display: flex; display: contents;
min-height: 2.75rem;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 0.25rem 0;
} }
.label { .label {
display: flex; display: flex;
min-height: 2.25rem;
min-width: 0; min-width: 0;
max-width: 100%; max-width: 100%;
flex: 1 1 0%;
align-items: center; align-items: center;
gap: 0.5rem; gap: 0.5rem;
font-weight: 500; font-weight: 500;
@@ -34,13 +31,14 @@
} }
.choiceWrap { .choiceWrap {
flex: 0 0 14rem; width: 100%;
width: 14rem;
} }
.choiceGroup { .choiceGroup {
position: relative; position: relative;
display: flex; display: grid;
grid-auto-flow: column;
grid-auto-columns: minmax(0, 1fr);
width: 100%; width: 100%;
height: 2.125rem; height: 2.125rem;
border-radius: 0.5rem; border-radius: 0.5rem;
@@ -57,7 +55,6 @@
.choiceButton { .choiceButton {
position: relative; position: relative;
z-index: 1; z-index: 1;
flex: 1 1 0;
min-width: 0; min-width: 0;
border: 0; border: 0;
border-radius: 0.375rem; border-radius: 0.375rem;
@@ -69,6 +66,8 @@
line-height: 1rem; line-height: 1rem;
text-align: center; text-align: center;
white-space: nowrap; white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
cursor: pointer; cursor: pointer;
transition: color 150ms ease; transition: color 150ms ease;
} }
@@ -101,13 +100,22 @@
} }
@media (max-width: 520px) { @media (max-width: 520px) {
.row { .container {
display: flex;
flex-direction: column; flex-direction: column;
align-items: flex-start; gap: 1rem;
} }
.choiceWrap { .row {
flex: none; display: flex;
width: min(100%, 14rem); min-height: 2.75rem;
flex-direction: column;
align-items: flex-start;
gap: 0.5rem;
padding: 0.25rem 0;
}
.label {
min-height: 0;
} }
} }