Skip to content

优化实例列表,限制宽度防止出现水平滚动条#5243

Merged
Glavo merged 2 commits into
HMCL-dev:mainfrom
OrzMiku:fix/issue-5240
Jan 19, 2026
Merged

优化实例列表,限制宽度防止出现水平滚动条#5243
Glavo merged 2 commits into
HMCL-dev:mainfrom
OrzMiku:fix/issue-5240

Conversation

@OrzMiku
Copy link
Copy Markdown
Contributor

@OrzMiku OrzMiku commented Jan 16, 2026

fix: #5240

Copy link
Copy Markdown
Contributor

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 addresses issue #5240 by preventing horizontal scrollbars in the game instance list. The change sets the preferred width to 0 for the center HBox container in the GameListCell, which allows the JavaFX layout engine to properly constrain the content width.

Changes:

  • Added center.setPrefWidth(0) to the center HBox in GameListCell to prevent horizontal overflow

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

@Glavo Glavo merged commit 1e76733 into HMCL-dev:main Jan 19, 2026
2 checks passed
Glavo added a commit that referenced this pull request Jan 28, 2026
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.

[Bug] 实例列表出现左右滚动条

3 participants