File tree Expand file tree Collapse file tree
packages/number-line/configure/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- import { MiniField } from './number-text-field' ;
1+ import NumberTextField from './number-text-field' ;
22import PropTypes from 'prop-types' ;
33import React from 'react' ;
44import { styled } from '@mui/material/styles' ;
@@ -15,6 +15,10 @@ const FlexRow = styled('div')({
1515 display : 'flex' ,
1616 alignItems : 'center' ,
1717 gap : '10px' ,
18+
19+ '.MuiInputBase-input' : {
20+ padding : '16.5px 14px !important' ,
21+ } ,
1822} ) ;
1923
2024const sort = ( domain ) => {
@@ -51,11 +55,11 @@ export class Domain extends React.Component {
5155 < DisplayFlex >
5256 < FlexRow >
5357 < label > Min Value</ label >
54- < MiniField min = { - 100000 } max = { 99999 } value = { domain . min } name = { DOMAIN_BEGIN } onChange = { this . changeMin } />
58+ < NumberTextField min = { - 100000 } max = { 99999 } value = { domain . min } name = { DOMAIN_BEGIN } onChange = { this . changeMin } />
5559 </ FlexRow >
5660 < FlexRow >
5761 < label > Max Value</ label >
58- < MiniField min = { - 99999 } max = { 100000 } value = { domain . max } name = { DOMAIN_END } onChange = { this . changeMax } />
62+ < NumberTextField min = { - 99999 } max = { 100000 } value = { domain . max } name = { DOMAIN_END } onChange = { this . changeMax } />
5963 </ FlexRow >
6064 </ DisplayFlex >
6165 ) ;
Original file line number Diff line number Diff line change @@ -37,9 +37,11 @@ let majorValues = {};
3737
3838const StyledNumberTextField = styled ( NumberTextField ) ( {
3939 width : '150px' ,
40- } ) ;
41-
4240
41+ '.MuiInputBase-input' : {
42+ padding : '16.5px 14px' ,
43+ } ,
44+ } ) ;
4345
4446const Row = styled ( 'div' ) ( ( { theme } ) => ( {
4547 display : 'flex' ,
@@ -258,9 +260,9 @@ export class Main extends React.Component {
258260 ticks . minor < 1
259261 ? math . number ( math . ceil ( minorLimits . min ) )
260262 : ticks . minor >= math . number ( math . ceil ( minorLimits . min ) ) &&
261- ticks . minor <= math . number ( math . floor ( minorLimits . max ) )
262- ? ticks . minor
263- : math . number ( math . ceil ( minorLimits . min ) ) ;
263+ ticks . minor <= math . number ( math . floor ( minorLimits . max ) )
264+ ? ticks . minor
265+ : math . number ( math . ceil ( minorLimits . min ) ) ;
264266 ticks . integerTick = ticks . minor ;
265267 minorValues = { decimal : [ ] , fraction : [ ] } ;
266268 ticks . fractionTick = '0' ;
You can’t perform that action at this time.
0 commit comments