Skip to content

Commit 62351c5

Browse files
committed
Slider styling
Signed-off-by: Emre Bogazliyanlioglu <emre@wormholelabs.xyz>
1 parent 209919d commit 62351c5

File tree

2 files changed

+19
-10
lines changed

2 files changed

+19
-10
lines changed

wormhole-connect/src/views/v2/Bridge/GasSlider/index.tsx

+8-2
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,12 @@ const useStyles = makeStyles()(() => ({
2828
overflow: 'visible',
2929
padding: '0 4px',
3030
},
31+
cardContent: {
32+
paddingTop: '8px',
33+
':last-child': {
34+
padding: '16px 20px',
35+
},
36+
},
3137
container: {
3238
display: 'flex',
3339
flexDirection: 'column',
@@ -148,7 +154,7 @@ const GasSlider = (props: {
148154

149155
return (
150156
<Card className={classes.card} variant="elevation">
151-
<CardContent>
157+
<CardContent className={classes.cardContent}>
152158
<Stack
153159
direction="row"
154160
alignItems="center"
@@ -182,7 +188,7 @@ const GasSlider = (props: {
182188
disabled={props.disabled}
183189
value={percentage}
184190
baseColor={theme.palette.primary.main}
185-
railColor={theme.palette.background.default}
191+
railColor={theme.palette.secondary.main}
186192
step={1}
187193
min={0}
188194
max={100}

wormhole-connect/src/views/v2/Bridge/Routes/SingleRoute.tsx

+11-8
Original file line numberDiff line numberDiff line change
@@ -631,14 +631,17 @@ const SingleRoute = (props: Props) => {
631631
{warningMessages}
632632
</CardContent>
633633
{showGasSlider && (
634-
<Collapse in={showGasSlider}>
635-
<GasSlider
636-
destinationGasDrop={
637-
receiveNativeAmount || amount.fromBaseUnits(0n, 8)
638-
}
639-
disabled={isGasSliderDisabled}
640-
/>
641-
</Collapse>
634+
<>
635+
<Divider flexItem sx={{ margin: '0px 16px' }} />
636+
<Collapse in={showGasSlider}>
637+
<GasSlider
638+
destinationGasDrop={
639+
receiveNativeAmount || amount.fromBaseUnits(0n, 8)
640+
}
641+
disabled={isGasSliderDisabled}
642+
/>
643+
</Collapse>
644+
</>
642645
)}
643646
</CardActionArea>
644647
</Card>

0 commit comments

Comments
 (0)