Repository navigation
[6.x] Stop the Set Alt badge covering asset filenames - #16171
Merged
Merged
Conversation
- Lay the row out with flex, so the actions sit beside the filename instead of over it - Put the badge beside the filename, wrapping below it when the filename would get too narrow - Use the small badge in narrow fields, like grid view - Clip the badge label sideways only, so long translations truncate without cutting off capitals
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of the Problem
Closes #16168
In list view, the cell with the Set Alt badge, file size and remove button is positioned over the right of the row. In narrow assets fields (1/3, 1/4) it's wider than the space left, so it covers the filename, and with longer translations it covers the thumbnail too and gets cut off on the left. Even without a badge, its fade cuts filenames off mid-word.
What this PR Does
truncatedoes, because of the label's text-box trim).This also drops the Safari
position: relativeworkaround and the left-to-right fade, which only existed for the overlaid cell.Before / After
How to Reproduce