Repository navigation
[6.x] Forms 2: Stop short page names getting cut off in the logic tree - #16059
Merged
Merged
Conversation
- Use truncate instead of line-clamp-1 for the page title, so a name that only just fits isn't cut off
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
On a form's Logic tab, a short page name can get cut off even though there's plenty of room for it. A page called "Extras" shows as "Extr…".
What this PR Does
Swaps
line-clamp-1fortruncateon the page name in the logic tree.The name box is sized to fit its text, and in Chrome the measured width can come out a fraction of a pixel narrower than the text needs. With
line-clamp-1that's enough to wrap the end of the word onto a second line, which the clamp then hides.truncatekeeps it on one line, and long names still get an ellipsis.The field labels keep
line-clamp, since they're full width and the expanded view lets them wrap to two lines on purpose.Before / After
How to Reproduce