Skip to content

Commit

Permalink
Show more devices in a row on large screens
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentbitter committed Dec 9, 2019
1 parent 4ad0d69 commit 8c60ef1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion website/src/components/AddDevice.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class AddDevice extends React.Component {
error={this.state.error !== ''}
value={this.state.name}
onChange={(event) => this.setState({ name: event.currentTarget.value })}
style={{ marginTop: -20, marginBottom: 8 }}
style={{ marginTop: -30, marginBottom: 8 }}
fullWidth
/>
{this.state.error !== '' && <FormHelperText>{this.state.error}</FormHelperText>}
Expand Down
6 changes: 3 additions & 3 deletions website/src/components/Devices.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ class Devices extends React.Component {

render() {
return (
<Grid container spacing={3} style={{ padding: '1rem' }}>
<Grid item xs={12} sm={6}>
<Grid container spacing={3}>
<Grid item xs={12} sm={6} md={4} lg={3}>
<AddDevice />
</Grid>
{AppState.devices.map((device, i) =>
<Grid key={i} item xs={12} sm={6}>
<Grid key={i} item xs={12} sm={6} md={4} lg={3}>
<Device device={device} />
</Grid>
)}
Expand Down

0 comments on commit 8c60ef1

Please sign in to comment.