Skip to content

Commit

Permalink
Fix sizing of number inputs in Chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
axelboc committed Oct 3, 2024
1 parent d61921a commit 8251797
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
}

.input {
width: 9em;
height: 36px;
appearance: auto !important;
}
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ function BeamlineAttributeForm(props) {
name="value"
aria-label="Value"
step={step}
size={10}
defaultValue={value.toFixed(precision)}
disabled={isBusy}
/>
Expand Down
1 change: 0 additions & 1 deletion ui/src/components/MotorInput/MotorInput.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ export default class MotorInput extends React.Component {
<input
className={styles.stepInput}
type="number"
size={3}
defaultValue={step}
disabled={this.props.disabled}
onChange={(evt) =>
Expand Down
1 change: 1 addition & 0 deletions ui/src/components/MotorInput/MotorInput.module.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.stepInput {
width: 3em;
background-color: #f5f5f5;
border: 1px solid #ccc;
font-size: 12px;
Expand Down

0 comments on commit 8251797

Please sign in to comment.