BelkacemYerfa / shadcn-extension

An open source component collection , that extends your ui library , built using shadcn component
https://shadcn-extension.vercel.app/
MIT License
460 stars 15 forks source link

File upload component has responsiveness problems #48

Open aymendn opened 2 months ago

aymendn commented 2 months ago

Hi!

When using a long name with the file upload component in the docs page, It will overflow like shown in the following image:

image

gaurangrshah commented 2 months ago

Thanks for bringing this to our attention.

@BelkacemYerfa what do u think? Is this something that we can simply truncate the middle of the filename? This way we can show the extension which (correct me if I am wrong) is the most important part.

i.e.,

"502f53af474373...ffff.png"

If so we need to decide on what the most reasonable max-char-length would be.

BelkacemYerfa commented 2 months ago

Actually I agree with @gaurangrshah on that side , in every file upload component the most important thing is the extension of the uploaded file.

We can land a fix for this one in the next release.

Thanks @aymendn for addressing this issue.