Fix mobile multiselect pulldown overflow and responsive row layouts
This commit is contained in:
+32
-5
@@ -1655,14 +1655,16 @@ section + section {
|
||||
}
|
||||
|
||||
.sg-options-row .sg-pulldown-panel:has(.sg-form-sections-card-wrapper) {
|
||||
width: min(
|
||||
var(--layout-pulldown-panel-form-mobile-width),
|
||||
calc(100vw - (2 * var(--spacing-large)))
|
||||
);
|
||||
width: calc(100vw - (2 * var(--spacing-large)));
|
||||
min-width: 0;
|
||||
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 {
|
||||
min-width: 0;
|
||||
@@ -1670,6 +1672,31 @@ section + section {
|
||||
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"] {
|
||||
display: grid;
|
||||
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 {
|
||||
position: static;
|
||||
transform: none;
|
||||
margin-left: calc(var(--spacing-small) * 1.5);
|
||||
margin-left: 0;
|
||||
grid-column: 3;
|
||||
grid-row: 2;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user