-
Notifications
You must be signed in to change notification settings - Fork 191
Fix: Fixed Missing Wordwrap from Command Rights Tooltips #7016
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
Fix: Fixed Missing Wordwrap from Command Rights Tooltips #7016
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7016 +/- ##
=========================================
Coverage 12.03% 12.04%
- Complexity 6882 6887 +5
=========================================
Files 1102 1102
Lines 142171 142197 +26
Branches 21976 21985 +9
=========================================
+ Hits 17115 17122 +7
- Misses 123221 123244 +23
+ Partials 1835 1831 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Pull Request Overview
This PR fixes the missing word wrap in command rights tooltips by wrapping long text in a wordWrap call and updating the tooltip resource formatting. Key changes include updating tooltip method calls in MissionViewPanel and ContractSummaryPanel, adding a static import for wordWrap in NewContractDialog, and adjusting multiline text formatting in Mission.properties.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.
File | Description |
---|---|
MekHQ/src/mekhq/gui/view/MissionViewPanel.java | Updated tooltip text to wrap long command rights descriptions. |
MekHQ/src/mekhq/gui/view/ContractSummaryPanel.java | Applied wordWrap to tooltip text for consistency. |
MekHQ/src/mekhq/gui/dialog/NewContractDialog.java | Added static import for wordWrap and updated pattern matching for tooltips. |
MekHQ/resources/mekhq/resources/Mission.properties | Reformatted multiline tooltip values; note potential typo in "Reflief Duty". |
The lengthy command rights tooltips were missing word wrapping. Now they're not.