Skip to content

Fix: Fixed truncated authlib injector warning text#6301

Merged
Glavo merged 4 commits into
HMCL-dev:mainfrom
KSSJW-Contribution:lbl-creation-warning-fix
Jul 5, 2026
Merged

Fix: Fixed truncated authlib injector warning text#6301
Glavo merged 4 commits into
HMCL-dev:mainfrom
KSSJW-Contribution:lbl-creation-warning-fix

Conversation

@KSSJW

@KSSJW KSSJW commented Jul 3, 2026

Copy link
Copy Markdown
Contributor

修复AddAuthlibInjectorServerPane中警告信息被截断的问题

实况

修改前 修改后
1 2

@KSSJW

KSSJW commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the layout of the AddAuthlibInjectorServerPane by wrapping the server URL text field and the creation warning label inside a VBox body. The review feedback highlights a potential JavaFX layout loop caused by binding the child label's prefWidthProperty to the parent VBox's widthProperty, and suggests setting the label's preferred width to 0 and binding its maxWidthProperty instead.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

…ectorServerPane.java

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@KSSJW

KSSJW commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the layout of the AddAuthlibInjectorServerPane by wrapping both txtServerUrl and lblCreationWarning inside a VBox body. The review feedback identifies a layout issue where the VBox reserves spacing for the warning label even when its text is empty, resulting in unnecessary blank space. A suggestion is provided to bind the label's visible and managed properties to resolve this.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@KSSJW

KSSJW commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the layout of the AddAuthlibInjectorServerPane by wrapping the server URL text field and the creation warning label inside a VBox body, updating their layout and visibility bindings accordingly. The reviewer suggests explicitly setting the minimum width of the warning label to 0 to prevent the dialog from expanding unexpectedly when displaying long URLs or exception names.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

…ectorServerPane.java

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@KSSJW KSSJW marked this pull request as ready for review July 3, 2026 15:55
@Glavo Glavo merged commit a6b3872 into HMCL-dev:main Jul 5, 2026
2 checks passed
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