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 {
|
&.table {
|
||||||
min-width: $unit * 30;
|
min-width: $unit * 30;
|
||||||
|
|
||||||
|
@include breakpoint(phone) {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
&.hidden {
|
&.hidden {
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,10 @@
|
||||||
border-radius: 9999px;
|
border-radius: 9999px;
|
||||||
height: 3px;
|
height: 3px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.table {
|
||||||
|
flex-grow: 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.range {
|
.range {
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@ const SliderTableField = (props: Props) => {
|
||||||
max={props.max}
|
max={props.max}
|
||||||
step={props.step}
|
step={props.step}
|
||||||
value={[props.value ? props.value : 0]}
|
value={[props.value ? props.value : 0]}
|
||||||
|
className="table"
|
||||||
onValueChange={handleValueChange}
|
onValueChange={handleValueChange}
|
||||||
onValueCommit={handleValueCommit}
|
onValueCommit={handleValueCommit}
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
|
|
@ -36,6 +36,14 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.switch {
|
||||||
|
@include breakpoint(phone) {
|
||||||
|
align-items: center;
|
||||||
|
flex-direction: row;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
.left {
|
.left {
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue