Skip to content

bug: File input is cut off at the botton #2360

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

Closed
thonkinator opened this issue Sep 21, 2023 · 2 comments
Closed

bug: File input is cut off at the botton #2360

thonkinator opened this issue Sep 21, 2023 · 2 comments

Comments

@thonkinator
Copy link

thonkinator commented Sep 21, 2023

What version of daisyUI are you using?

3.7.6

Describe your issue

When using the file-input class, the bottom of the file input is slightly cut off:
image
(notice how the bottom left border curve is cut off at the bottom)

This issue is also present, and much more noticeable, when the input has a color/border:
image

From testing, when using a file input with a border, this issue only seems to show up with larger font sizes. I suspect that the background is always some proportion smaller than it should be, but for smaller font sizes the difference is so small that it hides behind the border.

What browsers are you seeing the problem on?

Chrome, Safari, Firefox

Reproduction URL

https://play.tailwindcss.com/2LNOfP77Vh

@flomero
Copy link
Contributor

flomero commented Sep 23, 2023

is there a specific reason for h-[2.875rem] on .file-input::file-selector-button @saadeghi?
seems like using h-full instead should fix the issue

(unfortunately i can't check it right now, because i somehow always get Internal server error: [postcss] Cannot find module while trying to import an updated local build. any ideas what the reason could be?)

@thonkinator
Copy link
Author

@flomero manually adding this to the CSS does seem to fix the issue
https://play.tailwindcss.com/9rkbJovwAr?file=css

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