Skip to content

Commit

Permalink
Update time slider appearance
Browse files Browse the repository at this point in the history
  • Loading branch information
maxrjones committed Mar 21, 2024
1 parent 8adc640 commit 3c2ecd5
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions demo/components/parameter-controls.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ const ParameterControls = ({ getters, setters }) => {
>
{clim[1].toFixed(0)}
</Badge>
<Box sx={sx.label}>Month</Box>
<Box sx={sx.label}>Time</Box>
<Slider
min={0}
max={TIME.length - 1}
Expand All @@ -195,19 +195,6 @@ const ParameterControls = ({ getters, setters }) => {
value={TIME.indexOf(time)}
onChange={(e) => setTime(TIME[parseFloat(e.target.value)])}
/>
<Badge
sx={{
bg: 'primary',
color: 'background',
display: 'inline-block',
position: 'relative',
left: [3],
top: [1],
}}
>
{time}
</Badge>

<Box sx={{ ...sx.label, mt: [4] }}>Variable</Box>
<Select
sxSelect={{ bg: 'transparent' }}
Expand Down

0 comments on commit 3c2ecd5

Please sign in to comment.