Skip to content

Change captions to align text center#209

Open
ryanlua wants to merge 2 commits into1ForeverHD:mainfrom
ryanlua:center-caption
Open

Change captions to align text center#209
ryanlua wants to merge 2 commits into1ForeverHD:mainfrom
ryanlua:center-caption

Conversation

@ryanlua
Copy link
Contributor

@ryanlua ryanlua commented Feb 25, 2026

Makes text that is smaller than the binded hotkey become aligned to the center instead of the left. Before, only the hotkey would be centered aligned if it was smaller than the text.

Related to #193, but doesn't fully close it.

Before

default-inventory-key-caption-1

After

default-inventory-key-caption

Copilot AI review requested due to automatic review settings February 25, 2026 09:06
Copy link

Copilot AI left a 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 updates the caption UI layout so that caption text is horizontally centered when it’s narrower than the bound hotkey display, matching the intended visual alignment shown in the screenshots.

Changes:

  • Center-align children within the caption container’s UIListLayout to ensure the header text centers relative to the widest element (often the hotkey).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

By default, labels are center so this basically sets it as centered.
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.

2 participants