Revert "Harden mobile multiselect pulldown layout rules for narrow viewports"

This reverts commit 018e734df2.
This commit is contained in:
2026-05-19 19:31:22 +02:00
parent 018e734df2
commit a1be888668
+18 -34
View File
@@ -1654,35 +1654,36 @@ section + section {
width: 100%; width: 100%;
} }
.sg-options-row[data-pattern="multiselektions-pulldown"] .sg-pulldown-demo .sg-pulldown-panel { .sg-options-row .sg-pulldown-panel:has(.sg-form-sections-card-wrapper) {
width: calc(100vw - (2 * var(--spacing-large))); width: calc(100vw - (2 * var(--spacing-large)));
min-width: 0; min-width: 0;
max-width: calc(100vw - (2 * var(--spacing-large))); max-width: calc(100vw - (2 * var(--spacing-large)));
left: 0;
right: auto;
box-sizing: border-box;
} }
.sg-options-row[data-pattern="multiselektions-pulldown"] .sg-pulldown-panel .sg-form-sections-card-wrapper, .sg-options-row .sg-pulldown-demo .sg-pulldown-panel {
.sg-options-row[data-pattern="multiselektions-pulldown"] .sg-pulldown-panel .sg-form-sections-card, left: 0;
.sg-options-row[data-pattern="multiselektions-pulldown"] .sg-pulldown-panel .sg-form-sections-card__chapter { right: auto;
}
.sg-options-row .sg-pulldown-panel .sg-form-sections-card-wrapper,
.sg-options-row .sg-pulldown-panel .sg-form-sections-card {
min-width: 0; min-width: 0;
width: 100%; width: 100%;
max-width: 100%; max-width: 100%;
} }
.sg-options-row[data-pattern="multiselektions-pulldown"] .sg-pulldown-panel__row { .sg-pulldown-panel__row {
grid-template-columns: minmax(0, 1fr) var(--interaction-height); grid-template-columns: minmax(0, 1fr) var(--interaction-height);
row-gap: var(--spacing-small); row-gap: var(--spacing-small);
} }
.sg-options-row[data-pattern="multiselektions-pulldown"] .sg-pulldown-panel__label { .sg-pulldown-panel__label {
grid-column: 1 / -1; grid-column: 1 / -1;
grid-row: 1; grid-row: 1;
min-width: 0; min-width: 0;
} }
.sg-options-row[data-pattern="multiselektions-pulldown"] .sg-pulldown-panel__row .sg-pulldown { .sg-pulldown-panel__row .sg-pulldown {
grid-column: 1; grid-column: 1;
grid-row: 2; grid-row: 2;
width: 100%; width: 100%;
@@ -1690,30 +1691,28 @@ section + section {
max-width: 100%; max-width: 100%;
} }
.sg-options-row[data-pattern="multiselektions-pulldown"] .sg-pulldown-panel__row .sg-pulldown-panel__remove { .sg-pulldown-panel__row .sg-pulldown-panel__remove {
grid-column: 2; grid-column: 2;
grid-row: 2; grid-row: 2;
justify-self: end; justify-self: end;
} }
.sg-options-row[data-pattern="multiselektions-pulldown"] .sg-pulldown-panel .sg-slider-row[data-activatable="true"] { .sg-pulldown-panel .sg-slider-row[data-activatable="true"] {
display: grid; display: grid;
grid-template-columns: minmax(0, 1fr) auto var(--interaction-height); grid-template-columns: minmax(0, 1fr) auto var(--interaction-height);
align-items: center; align-items: center;
column-gap: var(--spacing-small); column-gap: var(--spacing-small);
padding-right: 0; padding-right: 0;
width: 100%;
max-width: 100%;
} }
.sg-options-row[data-pattern="multiselektions-pulldown"] .sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-label { .sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-label {
min-width: 100%; min-width: 100%;
flex: 0 0 100%; flex: 0 0 100%;
grid-column: 1 / -1; grid-column: 1 / -1;
grid-row: 1; grid-row: 1;
} }
.sg-options-row[data-pattern="multiselektions-pulldown"] .sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-slider { .sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-slider {
min-width: 0; min-width: 0;
max-width: 100%; max-width: 100%;
width: 100%; width: 100%;
@@ -1721,8 +1720,8 @@ section + section {
grid-row: 2; grid-row: 2;
} }
.sg-options-row[data-pattern="multiselektions-pulldown"] .sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-slider-value { .sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-slider-value {
min-width: calc(var(--interaction-height) * 1.1); min-width: calc(var(--interaction-height) * 1.25);
justify-self: end; justify-self: end;
align-self: center; align-self: center;
white-space: nowrap; white-space: nowrap;
@@ -1730,28 +1729,13 @@ section + section {
grid-row: 2; grid-row: 2;
} }
.sg-options-row[data-pattern="multiselektions-pulldown"] .sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-activatable-remove { .sg-pulldown-panel .sg-slider-row[data-activatable="true"] .sg-activatable-remove {
position: static; position: static;
transform: none; transform: none;
margin-left: 0; margin-left: 0;
grid-column: 3; grid-column: 3;
grid-row: 2; grid-row: 2;
} }
.sg-options-row[data-pattern="multiselektions-pulldown"] .sg-form-sections-card__chapter > :not(.sg-form-sections-card__chapter-title) + :not(.sg-form-sections-card__chapter-title) {
margin-top: var(--spacing-large);
}
.sg-options-row[data-pattern="multiselektions-pulldown"] .sg-form-sections-card__chapter > .sg-form-sections-card__chapter-title + * {
margin-top: var(--spacing-large);
}
.sg-options-row[data-pattern="multiselektions-pulldown"] .sg-form-sections-card__chapter > .sg-slider-row + .sg-slider-row,
.sg-options-row[data-pattern="multiselektions-pulldown"] .sg-form-sections-card__chapter > .sg-checkbox-field-option + .sg-checkbox-field-option,
.sg-options-row[data-pattern="multiselektions-pulldown"] .sg-form-sections-card__chapter > .sg-pulldown-panel__row + .sg-pulldown-panel__row,
.sg-options-row[data-pattern="multiselektions-pulldown"] .sg-form-sections-card__chapter > .sg-radio-activatable-group + .sg-radio-activatable-group {
margin-top: var(--spacing-small);
}
} }
/* ========================================================= */ /* ========================================================= */