-
Notifications
You must be signed in to change notification settings - Fork 329
FIX: [ISXB-1650] Fixed an issue where the action icon would shrink or disappear from UI when an action has a very long name. #2266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
… disappear from UI when an action has a very long name.
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr-agent |
| <ui:VisualElement name="icon" class="tree-view-item-icon" style="height: 19px; -unity-background-scale-mode: scale-to-fit;" /> | ||
| <ui:TextField picking-mode="Ignore" name="rename-text-field" is-delayed="true" focusable="true" class="unity-input-actions-editor-hidden" style="visibility: visible; flex-shrink: 1;" /> | ||
| <ui:Label text="binding-name" display-tooltip-when-elided="true" name="name" style="flex-grow: 1; justify-content: center; align-items: stretch; margin-left: 4px; -unity-font-style: normal;" /> | ||
| <ui:Label text="binding-name" display-tooltip-when-elided="true" name="name" style="flex-grow: 1; flex-shrink: 1; justify-content: center; align-items: stretch; margin-left: 4px; -unity-font-style: normal;" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Suggestion: While adding flex-shrink: 1 allows the label to shrink, it may not shrink below its minimum content size with very long text. To ensure it can shrink sufficiently and not crowd out other elements, consider adding min-width: 0. This is a common flexbox pattern for handling long content in flexible items. [general, importance: 6]
| <ui:Label text="binding-name" display-tooltip-when-elided="true" name="name" style="flex-grow: 1; flex-shrink: 1; justify-content: center; align-items: stretch; margin-left: 4px; -unity-font-style: normal;" /> | |
| style="flex-grow: 1; flex-shrink: 1; min-width: 0; justify-content: center; align-items: stretch; margin-left: 4px; -unity-font-style: normal;" |
🤖 Helpful? Please react with 👍/👎 | Questions❓Please reach out in Slack #ask-u-pr-agent
Codecov ReportAll modified and coverable lines are covered by tests ✅ @@ Coverage Diff @@
## develop #2266 +/- ##
===========================================
+ Coverage 76.70% 76.82% +0.11%
===========================================
Files 465 476 +11
Lines 87919 88645 +726
===========================================
+ Hits 67442 68099 +657
- Misses 20477 20546 +69 Flags with carried forward coverage won't be shown. Click here to find out more. see 25 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Description
Fixed an issue where the action icon would shrink or disappear from UI when an action has a very long name reported here: https://issuetracker.unity3d.com/product/unity/issues/guid/ISXB-1650. Additionally this issue also resulted in inconsistent behaviour between rename and display modes.
I have not attempted to clean up the UXML and move all styling to USS in this PR.
Testing status & QA
Verified during development by visual inspection when adding very long names that won't fit the available bounds.
Overall Product Risks
Comments to reviewers
Solves only by styling constraints.
Checklist
Before review:
Changed,Fixed,Addedsections.Area_CanDoX,Area_CanDoX_EvenIfYIsTheCase,Area_WhenIDoX_AndYHappens_ThisIsTheResult.During merge:
NEW: ___.FIX: ___.DOCS: ___.CHANGE: ___.RELEASE: 1.1.0-preview.3.After merge: