Skip to content

Conversation

@ekcoh
Copy link
Collaborator

@ekcoh ekcoh commented Oct 28, 2025

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

  • Complexity: Minimal
  • Halo Effect: Minimal

Comments to reviewers

Solves only by styling constraints.

Checklist

Before review:

  • Changelog entry added.
    • Explains the change in Changed, Fixed, Added sections.
    • For API change contains an example snippet and/or migration example.
    • JIRA ticket linked, example (case %%). If it is a private issue, just add the case ID without a link.
    • Jira port for the next release set as "Resolved".
  • Tests added/changed, if applicable.
    • Functional tests Area_CanDoX, Area_CanDoX_EvenIfYIsTheCase, Area_WhenIDoX_AndYHappens_ThisIsTheResult.
    • Performance tests.
    • Integration tests.
  • Docs for new/changed API's.
    • Xmldoc cross references are set correctly.
    • Added explanation how the API works.
    • Usage code examples added.
    • The manual is updated, if needed.

During merge:

  • Commit message for squash-merge is prefixed with one of the list:
    • NEW: ___.
    • FIX: ___.
    • DOCS: ___.
    • CHANGE: ___.
    • RELEASE: 1.1.0-preview.3.

After merge:

  • Create forward/backward port if needed. If you are blocked from creating a forward port now please add a task to ISX-1444.

… disappear from UI when an action has a very long name.
@ekcoh ekcoh requested review from Pauliusd01 and ritamerkl October 28, 2025 09:12
@u-pr-agent
Copy link

u-pr-agent bot commented Oct 28, 2025

PR Reviewer Guide 🔍

Here are some key observations to aid the review process:

⏱️ Estimated effort to review: 1 🔵⚪⚪⚪⚪

The PR is very small, containing only a single-line styling fix in a UXML file and a changelog update.
🏅 Score: 90

The PR provides a simple and effective fix for a specific UI bug, with the change being minimal and well-targeted.
🧪 No relevant tests
🔒 No security concerns identified
⚡ No major issues detected

🤖 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;" />
Copy link

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]

Suggested change
<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-github-com
Copy link

codecov-github-com bot commented Oct 28, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

@@             Coverage Diff             @@
##           develop    #2266      +/-   ##
===========================================
+ Coverage    76.70%   76.81%   +0.10%     
===========================================
  Files          465      476      +11     
  Lines        87919    88645     +726     
===========================================
+ Hits         67442    68093     +651     
- Misses       20477    20552      +75     
Flag Coverage Δ
inputsystem_MacOS_2021.3 5.93% <ø> (+0.02%) ⬆️
inputsystem_MacOS_2022.3 5.39% <ø> (+0.02%) ⬆️
inputsystem_MacOS_2022.3_project 74.74% <ø> (+0.15%) ⬆️
inputsystem_MacOS_6000.0 5.18% <ø> (-0.01%) ⬇️
inputsystem_MacOS_6000.0_project 76.60% <ø> (+0.09%) ⬆️
inputsystem_MacOS_6000.2 5.18% <ø> (-0.01%) ⬇️
inputsystem_MacOS_6000.2_project 76.60% <ø> (+0.09%) ⬆️
inputsystem_MacOS_6000.3 5.18% <ø> (-0.01%) ⬇️
inputsystem_MacOS_6000.3_project 76.59% <ø> (+0.09%) ⬆️
inputsystem_MacOS_6000.4 5.19% <ø> (+<0.01%) ⬆️
inputsystem_MacOS_6000.4_project 76.61% <ø> (+0.10%) ⬆️
inputsystem_MacOS_6000.5 5.19% <ø> (?)
inputsystem_MacOS_6000.5_project 76.61% <ø> (?)
inputsystem_Ubuntu_2021.3 5.94% <ø> (+0.02%) ⬆️
inputsystem_Ubuntu_2022.3 5.40% <ø> (+0.02%) ⬆️
inputsystem_Ubuntu_2022.3_project 74.54% <ø> (+0.14%) ⬆️
inputsystem_Ubuntu_6000.0 5.19% <ø> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.0_project 76.40% <ø> (+0.08%) ⬆️
inputsystem_Ubuntu_6000.2 5.19% <ø> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.2_project 76.40% <ø> (+0.08%) ⬆️
inputsystem_Ubuntu_6000.3 5.19% <ø> (-0.01%) ⬇️
inputsystem_Ubuntu_6000.3_project 76.41% <ø> (+0.09%) ⬆️
inputsystem_Ubuntu_6000.4 5.19% <ø> (+<0.01%) ⬆️
inputsystem_Ubuntu_6000.4_project 76.41% <ø> (+0.08%) ⬆️
inputsystem_Ubuntu_6000.5 5.19% <ø> (?)
inputsystem_Ubuntu_6000.5_project 76.41% <ø> (?)
inputsystem_Windows_2021.3 5.93% <ø> (+0.02%) ⬆️
inputsystem_Windows_2022.3 5.39% <ø> (+0.02%) ⬆️
inputsystem_Windows_2022.3_project 74.87% <ø> (+0.14%) ⬆️
inputsystem_Windows_6000.0 5.18% <ø> (-0.01%) ⬇️
inputsystem_Windows_6000.0_project 76.72% <ø> (+0.07%) ⬆️
inputsystem_Windows_6000.2 5.18% <ø> (-0.01%) ⬇️
inputsystem_Windows_6000.2_project 76.72% <ø> (+0.07%) ⬆️
inputsystem_Windows_6000.3 5.18% <ø> (-0.01%) ⬇️
inputsystem_Windows_6000.3_project 76.72% <ø> (+0.08%) ⬆️
inputsystem_Windows_6000.4 5.19% <ø> (+<0.01%) ⬆️
inputsystem_Windows_6000.4_project 76.73% <ø> (+0.08%) ⬆️
inputsystem_Windows_6000.5 5.19% <ø> (?)
inputsystem_Windows_6000.5_project 76.73% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 24 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants