Fix TableField components on mobile
This commit is contained in:
parent
8dbc6c1c6c
commit
14994bfbbd
4 changed files with 17 additions and 0 deletions
|
|
@ -63,6 +63,10 @@
|
|||
|
||||
&.table {
|
||||
min-width: $unit * 30;
|
||||
|
||||
@include breakpoint(phone) {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
&.hidden {
|
||||
|
|
|
|||
|
|
@ -14,6 +14,10 @@
|
|||
border-radius: 9999px;
|
||||
height: 3px;
|
||||
}
|
||||
|
||||
&.table {
|
||||
flex-grow: 1;
|
||||
}
|
||||
}
|
||||
|
||||
.range {
|
||||
|
|
|
|||
|
|
@ -54,6 +54,7 @@ const SliderTableField = (props: Props) => {
|
|||
max={props.max}
|
||||
step={props.step}
|
||||
value={[props.value ? props.value : 0]}
|
||||
className="table"
|
||||
onValueChange={handleValueChange}
|
||||
onValueCommit={handleValueCommit}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -36,6 +36,14 @@
|
|||
}
|
||||
}
|
||||
|
||||
&.switch {
|
||||
@include breakpoint(phone) {
|
||||
align-items: center;
|
||||
flex-direction: row;
|
||||
justify-content: space-between;
|
||||
}
|
||||
}
|
||||
|
||||
.left {
|
||||
align-items: center;
|
||||
display: flex;
|
||||
|
|
|
|||
Loading…
Reference in a new issue