Skip to content

feat(dialog): add option to stack dialog buttons vertically - #3195

Merged
Xephi merged 1 commit into
AuthMe:masterfrom
bastianbeckeru:feat/dialog-vertical-buttons
Nov 3, 2026
Merged

Xephi merged 1 commit into
AuthMe:masterfrom
bastianbeckeru:feat/dialog-vertical-buttons

Conversation

@bastianbeckeru

Copy link
Copy Markdown
Contributor

Adds settings.registration.dialog.stackButtonsVertically, disabled by default, which shows dialog buttons in a single column with the primary button on top. Existing servers keep the current side-by-side layout.

Image

Stacking keeps the existing tab order, so Tab from the last input still reaches the primary button first. Swapping the buttons horizontally would make Tab + Enter activate Cancel first, because the client's tab order follows the button order.

The option applies to the pre-join and post-join dialogs through DialogWindowSpec. Dialogs with a single button look the same either way.

Testing:

  • DialogWindowServiceTest: the option is kept when a pre-join register dialog is shown again with an error, and disabled dialogs use two columns.
  • SpigotDialogHelperTest: the login dialog uses one column when the option is enabled.
  • mvn -V -B clean package on JDK 21: build passes.
  • Paper 26.3 with a real client: buttons stack with the option enabled, stay side by side with it disabled, and Tab reaches the primary button first.

Not tested in-game: Folia and Spigot.

Closes #3194

@Xephi
Xephi merged commit 934b386 into AuthMe:master Nov 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

[Dialog] Option to stack buttons vertically

2 participants