This commit is contained in:
Thomas Nordquist
2019-01-08 03:29:18 +01:00
parent 723666e2cb
commit 2a800dc7ca
17 changed files with 86 additions and 120 deletions

View File

@@ -33,7 +33,8 @@ const styles: StyleRulesCallback = theme => ({
...theme.mixins.toolbar,
},
input: {
margin: `auto ${theme.spacing.unit}px auto ${theme.spacing.unit}px`,
minWidth: '150px',
margin: `auto ${theme.spacing.unit}px auto ${2 * theme.spacing.unit}px`,
},
})
@@ -86,7 +87,7 @@ class Settings extends React.Component<Props, State> {
private renderAutoExpand() {
const { classes, actions, autoExpandLimit } = this.props
return <span>
return <div style={{ padding: '8px' }}>
<InputLabel htmlFor="auto-expand">Auto Expand</InputLabel>
<Select
value = { autoExpandLimit }
@@ -97,11 +98,12 @@ class Settings extends React.Component<Props, State> {
className = {classes.input}
>
<MenuItem value = {0}><em>Disabled</em></MenuItem>
<MenuItem value = {2}>Few</MenuItem>
<MenuItem value = {3}>Some</MenuItem>
<MenuItem value = {10}>Most</MenuItem>
<MenuItem value = {1E6}>All</MenuItem>
</Select>
</span>
</div>
}
}