Fix custom file input overflow with too long filenames#28497
Fix custom file input overflow with too long filenames#28497MicroDroid wants to merge 3 commits intotwbs:v4-devfrom
Conversation
Signed-off-by: Yousef Sultan <yousef.su.2000@gmail.com>
|
@MicroDroid, could you provide a (Codepen) demo of what exactly this fixes? |
|
@MartijnCuppens there you go https://codepen.io/OverCoder/pen/PLQxaJ Select a file with a huge filename (or multiple files). |
|
For me it doesn't fix the issue when the |
|
I made an example on how to handle that see here: https://bs-custom-file-input.netlify.com/ |
|
Oh, that's right, it's my fault I added the property to the wrong selector. That said, can you see the updated pen? I kind of implemented something similar to what @Johann-S had but with padding instead of hardcoding a 75% width, thus to fill out the entire space properly. I am not sure using 80px is safe though, and assuming a non-monospace font, I have no idea how to If it looks right I'll push it here. |
|
Reference: #26933. See my solution there. |
|
Alright, based on @foxleigh81's approval I'm going to push the fix I've implemented in the pen in a few moments. |
Signed-off-by: Yousef Sultan <yousef.su.2000@gmail.com>
|
Fixed in #28511 |
No description provided.