Long filenames are indistinguishable if they are shortened to common substring. #3014

Closed
opened 2025-11-02 04:57:25 -06:00 by GiteaMirror · 0 comments
Owner

Originally created by @mateusza on GitHub (Mar 6, 2019).

File names on directory listing are shortened with "..." if they are too long. When there are multiple files with long name that differ at the very end, they may turn out to be all shortened to the same name making it hard for user to tell them apart.

Description

This could be solved by adding title= attribute with full name, so it appears on mouse hover. That's the way GitHub does it.

Screenshots

image

GitHub:
image

Originally created by @mateusza on GitHub (Mar 6, 2019). File names on directory listing are shortened with "..." if they are too long. When there are multiple files with long name that differ at the very end, they may turn out to be all shortened to the same name making it hard for user to tell them apart. - Gitea version (or commit ref): ad86b84 - Git version: not relevant - Operating system: not relevant - Database (use `[x]`): not relevant - Can you reproduce the bug at https://try.gitea.io: - [x] Yes ( https://try.gitea.io/mateusza/..qwe/src/branch/master/4.0 ) - [ ] No - [ ] Not relevant - Log gist: ## Description This could be solved by adding title= attribute with full name, so it appears on mouse hover. That's the way GitHub does it. ## Screenshots ![image](https://user-images.githubusercontent.com/7002/53915828-fe5c2300-4060-11e9-9dff-0064426171ff.png) GitHub: ![image](https://user-images.githubusercontent.com/7002/53916299-239d6100-4062-11e9-8a35-1b24a0f5f71b.png)
GiteaMirror added the topic/uitype/enhancement labels 2025-11-02 04:57:25 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3014