Skip to content

Commit

Permalink
Change size legend from float to flex
Browse files Browse the repository at this point in the history
  • Loading branch information
Alfred Bösch authored and morpheus-87 committed Dec 2, 2021
1 parent 791904f commit 0512010
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/components/CroppingDialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ const useStyles = makeStyles((theme) => ({
},
legend: {
width: "100%",
display: "flex",
justifyContent: "space-between",
},
optionsHeading: {
marginBottom: theme.spacing(1),
Expand All @@ -63,10 +65,6 @@ const useStyles = makeStyles((theme) => ({
previewLink: {
fontFamily: "sans-serif",
},
sliderValue: {
display: "block",
float: "right",
},
}));

const supportsClipboard = "clipboard" in navigator;
Expand Down Expand Up @@ -106,7 +104,6 @@ const CroppingDialog = ({
previewHeading,
previewImage,
previewLink,
sliderValue,
} = useStyles();
if (
!enabled ||
Expand Down Expand Up @@ -196,8 +193,7 @@ const CroppingDialog = ({
</Typography>
<FormControl component="fieldset" fullWidth>
<FormLabel component="legend" className={legend}>
{t("imageCropper.size")}{" "}
<span className={sliderValue}>{size}%</span>
{t("imageCropper.size")} <span>{size}%</span>
</FormLabel>
<Slider min={1} onChange={(_evt, s) => setSize(s)} value={size} />
</FormControl>
Expand Down

0 comments on commit 0512010

Please sign in to comment.