Skip to content

Commit

Permalink
fix[SignUpPageView]: add text wrapping to prevent longer error messag…
Browse files Browse the repository at this point in the history
…es from being cut off
  • Loading branch information
Lucy Ciara Herud-Thomassen authored and Lucy Ciara Herud-Thomassen committed Apr 21, 2026
1 parent 9fbe278 commit 58d80d9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ public char[] getPassword() {

public void showError(String message) {
errorLabel.setText(message);
errorLabel.setWrapText(true);
errorLabel.setStyle("-fx-text-fill: red;");
}

Expand All @@ -87,7 +88,6 @@ private VBox getSignUpBox() {

private Label getErrorLabel() {
errorLabel = new Label();
errorLabel.setPrefHeight(20);
return errorLabel;
}

Expand Down

0 comments on commit 58d80d9

Please sign in to comment.