Skip to content

Commit

Permalink
fix(RodEditor): Make length input full-width
Browse files Browse the repository at this point in the history
  • Loading branch information
floryst committed May 1, 2018
1 parent 3fa9fba commit 59a4db1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/simput/RodEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ export default class RodEditor extends React.Component {
classes: style.centeredCell,
render: (cellName, layer) => (
<select
className={style.cellSelect}
className={style.fullWidth}
value={cellName}
onChange={(e) => this.onCellChange(layer, e.target.value)}
>
Expand All @@ -113,6 +113,7 @@ export default class RodEditor extends React.Component {
classes: style.centeredCell,
render: (value, layer) => (
<input
className={style.fullWidth}
type="number"
min="0"
step="any"
Expand Down
2 changes: 1 addition & 1 deletion src/simput/RodEditor.mcss
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
text-align: center;
}

.cellSelect {
.fullWidth {
width: 100%;
}

Expand Down

0 comments on commit 59a4db1

Please sign in to comment.