Fix mobile multiselect pulldown overflow and responsive row layouts

This commit is contained in:
2026-05-19 19:27:23 +02:00
parent 04a80804cb
commit 640b7fd4ad
+32 -5
View File
@@ -1655,14 +1655,16 @@ section + section {
} }
.sg-options-row .sg-pulldown-panel:has(.sg-form-sections-card-wrapper) { .sg-options-row .sg-pulldown-panel:has(.sg-form-sections-card-wrapper) {
width: min( width: calc(100vw - (2 * var(--spacing-large)));
var(--layout-pulldown-panel-form-mobile-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)));
} }
.sg-options-row .sg-pulldown-demo .sg-pulldown-panel {
left: 0;
right: auto;
}
.sg-options-row .sg-pulldown-panel .sg-form-sections-card-wrapper, .sg-options-row .sg-pulldown-panel .sg-form-sections-card-wrapper,
.sg-options-row .sg-pulldown-panel .sg-form-sections-card { .sg-options-row .sg-pulldown-panel .sg-form-sections-card {
min-width: 0; min-width: 0;
@@ -1670,6 +1672,31 @@ section + section {
max-width: 100%; max-width: 100%;
} }
.sg-pulldown-panel__row {
grid-template-columns: minmax(0, 1fr) var(--interaction-height);
row-gap: var(--spacing-small);
}
.sg-pulldown-panel__label {
grid-column: 1 / -1;
grid-row: 1;
min-width: 0;
}
.sg-pulldown-panel__row .sg-pulldown {
grid-column: 1;
grid-row: 2;
width: 100%;
min-width: 0;
max-width: 100%;
}
.sg-pulldown-panel__row .sg-pulldown-panel__remove {
grid-column: 2;
grid-row: 2;
justify-self: end;
}
.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);
@@ -1705,7 +1732,7 @@ section + section {
.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: calc(var(--spacing-small) * 1.5); margin-left: 0;
grid-column: 3; grid-column: 3;
grid-row: 2; grid-row: 2;
} }