Fix TableField components on mobile

This commit is contained in:
Justin Edmund 2023-07-06 18:37:44 -07:00
parent 8dbc6c1c6c
commit 14994bfbbd
4 changed files with 17 additions and 0 deletions

View file

@ -63,6 +63,10 @@
&.table {
min-width: $unit * 30;
@include breakpoint(phone) {
width: 100%;
}
}
&.hidden {

View file

@ -14,6 +14,10 @@
border-radius: 9999px;
height: 3px;
}
&.table {
flex-grow: 1;
}
}
.range {

View file

@ -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}
/>

View file

@ -36,6 +36,14 @@
}
}
&.switch {
@include breakpoint(phone) {
align-items: center;
flex-direction: row;
justify-content: space-between;
}
}
.left {
align-items: center;
display: flex;