Skip to content
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

Updated Person View and Personnel Tab to Better Support Differing Screen Sizes #4597

Merged
merged 3 commits into from
Aug 12, 2024

Conversation

IllianiCBT
Copy link
Collaborator

This PR improves the Person View pane on the Personnel Tab by switching the number of biographic columns from 2 to 1. It also adjusts the Person View width both on the Personnel Tab and Personnel Market. This allows the associated tables to take up the bulk of the screen real estate, while also ensuring all the important information on the Person View is fully visible.

This PR should be particularly useful for users with unusually wide or narrow screens.

Closes #4433

Decreased the PERSONNEL_VIEW_WIDTH from 500 to 475 to improve layout. Replaced `firsty` and `secondy` with a single variable `y` for grid positioning to simplify code readability and maintainability.
Changed the PERSONNEL_VIEW_WIDTH constant from 475 to 500 in PersonnelTab.java. This adjustment allows for a slightly wider display area for personnel information, improving the user interface.
@IllianiCBT IllianiCBT added the GUI label Aug 9, 2024
@IllianiCBT IllianiCBT self-assigned this Aug 9, 2024
@IllianiCBT IllianiCBT changed the title Reduce PERSONNEL_VIEW_WIDTH and simplify y-axis logic Updated Person View and Personnel Tab to Better Support Differing Screen Sizes Aug 9, 2024
Increased the preferred size of the personnel and view scroll tables to improve layout and visual presentation. Adjusted the dimensions to better fit the GUI design and user experience.
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 10.31%. Comparing base (a684cf7) to head (1563292).
Report is 9 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #4597      +/-   ##
============================================
- Coverage     10.31%   10.31%   -0.01%     
  Complexity     5818     5818              
============================================
  Files           936      936              
  Lines        128889   128894       +5     
  Branches      18960    18961       +1     
============================================
  Hits          13301    13301              
- Misses       114312   114317       +5     
  Partials       1276     1276              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@HammerGS HammerGS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and seems to work

@IllianiCBT IllianiCBT merged commit 90d256c into MegaMek:master Aug 12, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RFE: GUI - Personnel tab side panel scales poorly to content, does not remember resizing.
3 participants