Problem/Motivation
When my client uploads particularly long file names, especially with version names at the end, they cannot tell which file is which because there is an ellipsis that truncates the file name.
Steps to reproduce
Add a file with a long name and view it in the browser.
Proposed resolution
I'm going to add a patch that shows the full file name on hover.
| Comment | File | Size | Author |
|---|---|---|---|
| #10 | AfterMR.png | 21.24 KB | anirudhsingh19 |
| #10 | BeforeMR.png | 14.65 KB | anirudhsingh19 |
| #3 | file_browser__3347595_3__show_full_file_name_on_hover.patch | 405 bytes | dzinkevich |
| #2 | file_browser__3347595_1__show_full_file_name_on_hover.patch | 405 bytes | dzinkevich |
Issue fork file_browser-3347595
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #1
dzinkevich commenteddzinkevich created an issue. See original summary.Edit: missed a line in the patch
Comment #2
dzinkevich commentedEdit: missed a line in the patch, see #3
Comment #3
dzinkevich commentedHere is a patch that shows the full filename on hover:
Comment #4
d.fisher commentedThis looks and sounds sensible. This will need a MR through gitlab to ensure pipelines pass etc. I will do this!
Comment #6
d.fisher commentedPlease test this still meets you requirements with MR!11 against the 2.x branch.
MR is here: https://git.drupalcode.org/project/file_browser/-/merge_requests/11
To apply via composer patches simply add .patch to the end of the url to reach a remote patch:
https://git.drupalcode.org/project/file_browser/-/merge_requests/11.patch
Let's get this one RTBC and merged!
Comment #7
d.fisher commentedComment #8
d.fisher commentedAnyone want to review this one and mark as RTBC if it solves the issue?
Comment #9
anirudhsingh19 commentedreviewing this
Comment #10
anirudhsingh19 commentedThe MR solves the issue, now on hover the full name of the file can be seen. Attaching the screenshots for before and after on hover. I also tried to add a file with too long file name but the max-length is 240 characters, so the whole block overflowing out of the box won't be a problem here.
Comment #11
d.fisher commentedMerged to 2.x and will be in the next tagged release. Thank you! Marking as fixed.