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

UI issue on iPhone #180

Open
gsofter opened this issue Aug 30, 2022 · 1 comment
Open

UI issue on iPhone #180

gsofter opened this issue Aug 30, 2022 · 1 comment

Comments

@gsofter
Copy link

gsofter commented Aug 30, 2022

  • When we input the numbers on iPhone(Safari), the numbers are not being displayed fully but it is being cut down.

  • Screenshot
    image

@krisko4
Copy link

krisko4 commented Nov 23, 2023

@gsofter please make sure to set padding-right: 0 in styles of your input. It seems that the browser sets some padding for an input on iOS. Suprisingly, it happens only on physical mobile device and cannot be reproduced using safari devtools on macOS.
Example code using styled-components:

const StyledInput = styled(ReactCodeInput)`
  > input {
      padding-right: 0;
    }
`;

...or

<ReactCodeInput inputStyle={{paddingRight: 0}} />

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

2 participants