Skip to content

Commit

Permalink
Merge pull request #350 from RyanNgWH/Bugfix-LinuxHelpWindow
Browse files Browse the repository at this point in the history
Bug: Increase width of help window command pane
  • Loading branch information
baskargopinath authored Apr 14, 2024
2 parents ff250b6 + 6bb67ca commit 7830414
Showing 1 changed file with 16 additions and 15 deletions.
31 changes: 16 additions & 15 deletions src/main/java/seedu/address/ui/HelpWindow.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,19 +22,19 @@
public class HelpWindow extends UiPart<Stage> {
public static final String USERGUIDE_URL = "https://ay2324s2-cs2103t-t17-3.github.io/tp/UserGuide.html";
public static final String[][] COMMAND_DESCRIPTIONS = {
{"add", "Adds a client to FitBook."},
{"clear", "Clears all entries from FitBook. USE WITH CAUTION."},
{"delete", "Deletes the specified client from FitBook."},
{"edit", "Edits an existing client in FitBook."},
{"exit", "Exits FitBook."},
{"find", "Finds all clients whose specified attribute contains the specified keyword"
+ " (Uses name attribute if none specified)."},
{"fitadd", "Adds exercise(s) to an existing client in FitBook."},
{"fitdelete", "Deletes exercise(s) from an existing client in FitBook."},
{"help", "Shows this window."},
{"list", "Shows a list of all clients saved in FitBook."},
{"note", "Adds a new note to a client."},
{"weight", "Adds a new weight value to a client."},
{ "add", "Adds a client to FitBook." },
{ "clear", "Clears all entries from FitBook. USE WITH CAUTION." },
{ "delete", "Deletes the specified client from FitBook." },
{ "edit", "Edits an existing client in FitBook." },
{ "exit", "Exits FitBook." },
{ "find", "Finds all clients whose specified attribute contains the specified keyword"
+ " (Uses name attribute if none specified)." },
{ "fitadd", "Adds exercise(s) to an existing client in FitBook." },
{ "fitdelete", "Deletes exercise(s) from an existing client in FitBook." },
{ "help", "Shows this window." },
{ "list", "Shows a list of all clients saved in FitBook." },
{ "note", "Adds a new note to a client." },
{ "weight", "Adds a new weight value to a client." },
};

private static final Logger logger = LogsCenter.getLogger(HelpWindow.class);
Expand Down Expand Up @@ -100,7 +100,7 @@ public void initialize() {
Label commandLabel = new Label(commandName);
Label descriptionLabel = new Label(commandDescription);

commandLabel.setPrefWidth(50);
commandLabel.setPrefWidth(60);

HBox commandBox = new HBox(10);
commandBox.getChildren().addAll(commandLabel, descriptionLabel);
Expand All @@ -112,7 +112,8 @@ public void initialize() {
/**
* Shows the help window.
*
* @throws IllegalStateException <ul>
* @throws IllegalStateException
* <ul>
* <li>
* if this method is called on a thread other than
* the JavaFX Application Thread.
Expand Down

0 comments on commit 7830414

Please sign in to comment.