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

Label text overflows when uploading multiple files in iOS Safari #75

Closed
alstr opened this issue Jun 19, 2020 · 1 comment
Closed

Label text overflows when uploading multiple files in iOS Safari #75

alstr opened this issue Jun 19, 2020 · 1 comment

Comments

@alstr
Copy link

alstr commented Jun 19, 2020

I noticed when doing some testing that when using iOS Safari, if you upload multiple image files (which have pretty long names when stored in Photos), the text overflows the label and isn't hidden.

I propose something like:

.custom-file-label {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    padding-right: 25%;
}

The padding is optional but I think it looks better truncated with an ellipsis. This was the easiest way to achieve that.

@Johann-S
Copy link
Owner

Hi @alstr

bs-custom-file-input is just a JavaScript lib, for CSS changes please open an issue on Bootstrap

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