Skip to content

Commit

Permalink
fix(ui): Align preset selection labels with icons
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Nov 17, 2021
1 parent 4f8aaec commit c6803f6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/controls/PresetSelection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const PresetSelectionControl = (props: PresetSelectionProps): JSX.Element => {
}}
>
<Grid item>{icon}</Grid>
<Grid item>
<Grid item sx={{marginTop: "-8px" /* ugh */}}>
<Typography variant="subtitle1" id={`${capability}-slider-label`}>
{label}
</Typography>
Expand All @@ -190,7 +190,7 @@ const PresetSelectionControl = (props: PresetSelectionProps): JSX.Element => {
<Grid container>
{
!selectPresetIsLoading &&
<Grid item>
<Grid item sx={{marginTop: "-2px" /* ugh */}}>
<Typography variant="subtitle1" sx={{paddingRight: "8px"}}>
{preset?.value}
</Typography>
Expand Down

0 comments on commit c6803f6

Please sign in to comment.