Skip to content

Commit

Permalink
fit controls on one row
Browse files Browse the repository at this point in the history
  • Loading branch information
lounsbrough committed Jan 19, 2024
1 parent bf556b1 commit 65d50e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions demo/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,14 @@ function App(): JSX.Element {
</Box>
<Box sx={{ flexGrow: 1, padding: 5 }}>
<Grid container spacing={2} alignItems="center">
<Grid xs={12} lg={3}>
<Grid xs={12} xl={2} md={3}>
<SettingsBox>
<Typography gutterBottom>Background Color</Typography>
<HexColorPicker style={{ margin: '15px auto' }} color={backgroundColor} onChange={setBackgroundColor} />
<HexColorInput alpha color={backgroundColor} onChange={setBackgroundColor} />
</SettingsBox>
</Grid>
<Grid xs={12} lg={3}>
<Grid xs={12} xl={2} md={3}>
<SettingsBox>
<Typography gutterBottom>Foreground Color</Typography>
<HexColorPicker style={{ margin: '15px auto' }} color={foregroundColor} onChange={setForegroundColor} />
Expand Down Expand Up @@ -152,7 +152,7 @@ function App(): JSX.Element {
/>
</SettingsBox>
</Grid>
<Grid xs={12} lg={2}>
<Grid xs={12} xl={2} md={3}>
<SettingsBox>
<Typography gutterBottom>Background Color Override</Typography>
<Switch
Expand Down

0 comments on commit 65d50e8

Please sign in to comment.