Skip to content

Commit

Permalink
Merge pull request #135 from AY2324S2-CS2103T-W12-2/taufiq/overflow-d…
Browse files Browse the repository at this point in the history
…isplay

fix: Remove text truncation for `list_modules`
  • Loading branch information
blaukc authored Apr 15, 2024
2 parents f0f4e23 + 07d3f4f commit 9e35ae9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

import java.util.List;

import seedu.address.commons.util.StringUtil;
import seedu.address.logic.commands.Command;
import seedu.address.logic.commands.CommandResult;
import seedu.address.logic.commands.exceptions.CommandException;
Expand Down Expand Up @@ -38,7 +37,7 @@ public CommandResult execute(Model model) throws CommandException {
sb.append("List of modules with prefix: ").append(this.modulePrefix).append("\n");
for (Module m : modules) {
sb.append(m.getModuleCode().getCode()).append(" : ");
sb.append(StringUtil.truncate(m.getDescription().getValue(), 80)).append("\n");
sb.append(m.getDescription().getValue()).append("\n\n");
}
return new CommandResult(sb.toString());
}
Expand Down
5 changes: 2 additions & 3 deletions src/main/resources/view/ResultDisplay.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<?import javafx.scene.control.TextArea?>
<?import javafx.scene.layout.StackPane?>

<StackPane fx:id="placeHolder" styleClass="pane-with-border" xmlns="http://javafx.com/javafx/17"
xmlns:fx="http://javafx.com/fxml/1">
<TextArea fx:id="resultDisplay" editable="false" styleClass="result-display"/>
<StackPane fx:id="placeHolder" styleClass="pane-with-border" xmlns="http://javafx.com/javafx/21" xmlns:fx="http://javafx.com/fxml/1">
<TextArea fx:id="resultDisplay" editable="false" styleClass="result-display" wrapText="true" />
</StackPane>

0 comments on commit 9e35ae9

Please sign in to comment.