guilhermerodz / input-otp

One time passcode Input. Accessible & unstyled.
https://input-otp.rodz.dev
MIT License
2.35k stars 47 forks source link

Fix Animation Positioning on Vertical Monitors #8

Closed onurhan1337 closed 5 months ago

onurhan1337 commented 5 months ago

This pull request addresses the issue of the code block's bottom 20% being visible on vertical monitors. The changes ensure that the entire code block is properly displayed, enhancing the overall user experience.

Changes include:

Example of resolved issue

image

The picture above shows the problem. With this PR, the 'code-overlay' size problem has been resolved and a better user experience has been provided.

vercel[bot] commented 5 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
input-otp-x1vw ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 20, 2024 10:53am
rodz-input-otp ✅ Ready (Inspect) Visit Preview 💬 Add feedback Feb 20, 2024 10:53am
guilhermerodz commented 5 months ago

Thanks for pointing this out! I have now solved it in a slightly different way at e44c2de (doesn't require media queries)