Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

input wide on firefox seems too big ( and does not match that shown on chrome ) #138

Open
omerbrandis opened this issue Jul 4, 2024 · 0 comments

Comments

@omerbrandis
Copy link

hello

it looks like the display on Chrome and Firefox do not match.
chrome seems ok,
the width property for the input element is 63.9931px; with some about 1 char of space on the left and right of the displayed digits.
while on firefox, its 129px. with too much space on the left and right of the digits.

both browsers confirm fontsize of 25px.
they don't use the same font. but as explained it does not look like a font related issue to me.

here's the code

<NumericInput min={30} max={100} size={3} value={...} onChange={...}  
 	style={{        paddingLeft:"0 !important;",
			btnUp: {display:"none"},
			btnDown: {display:"none"},
 			input: { color: 'white',fontSize:"25px",backgroundColor:"black",paddingRight:"0",paddingLeft:"0 !important;",textAlign:"center"}, 
                        'input:not(.form-control)': {border:"none",borderRadius:"15px"},
                        
              }}
      />

can anyone suggest a solution , or a method to debug the cause for this issue?
:-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant