feat(components): make pulldown responsive like single-line input
This commit is contained in:
@@ -790,6 +790,39 @@ section + section {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#component-pulldown .sg-form-preview-area {
|
||||
width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#component-pulldown .sg-state-example {
|
||||
grid-template-columns: calc(var(--interaction-height) * 6) minmax(0, 1fr);
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#component-pulldown .sg-state-example > :last-child {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
#component-pulldown .sg-pulldown-demo {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
max-width: var(--layout-input-field-max-width);
|
||||
}
|
||||
|
||||
#component-pulldown .sg-pulldown-demo__trigger,
|
||||
#component-pulldown .sg-state-example > .sg-pulldown {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
#component-pulldown .sg-activatable-row {
|
||||
width: 100%;
|
||||
max-width: var(--layout-input-field-max-width);
|
||||
}
|
||||
|
||||
.sg-input-component .sg-state-example {
|
||||
grid-template-columns: calc(var(--interaction-height) * 6) minmax(0, 1fr);
|
||||
}
|
||||
@@ -801,17 +834,39 @@ section + section {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
#component-pulldown .sg-form-preview-area {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.sg-input-component .sg-state-example {
|
||||
grid-template-columns: 1fr;
|
||||
align-items: start;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
#component-pulldown .sg-state-example {
|
||||
grid-template-columns: 1fr;
|
||||
align-items: start;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.sg-input-component .sg-state-example > :last-child {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
#component-pulldown .sg-state-example > :last-child {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
#component-pulldown .sg-activatable-row {
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.sg-labeled-input-row {
|
||||
flex-direction: column;
|
||||
align-items: flex-start;
|
||||
|
||||
Reference in New Issue
Block a user