From 810310ca12a226b40bf348e4bf2b2321dde1d9d3 Mon Sep 17 00:00:00 2001 From: davidni Date: Sat, 25 Mar 2023 19:31:39 +0800 Subject: [PATCH] Fix address hidden contents --- src/main/java/seedu/address/model/tag/AffiliationTag.java | 8 -------- src/main/java/seedu/address/model/tag/ModuleTag.java | 2 +- src/main/java/seedu/address/model/tag/Tag.java | 2 +- src/main/java/seedu/address/ui/PersonalPane.java | 1 + src/main/resources/view/PersonalPane.fxml | 6 ++++-- src/main/resources/view/Style.css | 1 + 6 files changed, 8 insertions(+), 12 deletions(-) delete mode 100644 src/main/java/seedu/address/model/tag/AffiliationTag.java diff --git a/src/main/java/seedu/address/model/tag/AffiliationTag.java b/src/main/java/seedu/address/model/tag/AffiliationTag.java deleted file mode 100644 index fad8f7dc36d..00000000000 --- a/src/main/java/seedu/address/model/tag/AffiliationTag.java +++ /dev/null @@ -1,8 +0,0 @@ -package seedu.address.model.tag; - -/** - * Represents a Tag in the address book. - * Guarantees: immutable; name is valid as declared in - */ -public class AffiliationTag { -} diff --git a/src/main/java/seedu/address/model/tag/ModuleTag.java b/src/main/java/seedu/address/model/tag/ModuleTag.java index 132f200822a..0e3f94e2c47 100644 --- a/src/main/java/seedu/address/model/tag/ModuleTag.java +++ b/src/main/java/seedu/address/model/tag/ModuleTag.java @@ -21,7 +21,7 @@ public boolean equals(Object other) { */ @Override public String tagColor() { - return "#006400"; + return "#193E04"; } @Override diff --git a/src/main/java/seedu/address/model/tag/Tag.java b/src/main/java/seedu/address/model/tag/Tag.java index 04e670f50e7..d227361c2ca 100644 --- a/src/main/java/seedu/address/model/tag/Tag.java +++ b/src/main/java/seedu/address/model/tag/Tag.java @@ -36,7 +36,7 @@ public static boolean isValidTagName(String test) { * @return the corresponding color code for css */ public String tagColor() { - return "#3e7b91"; + return "#000080"; } @Override diff --git a/src/main/java/seedu/address/ui/PersonalPane.java b/src/main/java/seedu/address/ui/PersonalPane.java index eb75379500d..d963d844e1b 100644 --- a/src/main/java/seedu/address/ui/PersonalPane.java +++ b/src/main/java/seedu/address/ui/PersonalPane.java @@ -68,6 +68,7 @@ public PersonalPane(Person person) { status.setText(person.getStatus().fullStatusDetail); phone.setText(person.getPhone().value); address.setText(person.getAddress().value); + address.setWrapText(true); email.setText(person.getEmail().value); person.getTags().stream() .sorted(Comparator.comparing(tag -> tag.tagName)) diff --git a/src/main/resources/view/PersonalPane.fxml b/src/main/resources/view/PersonalPane.fxml index be472c4dcab..7f6f026a3a2 100644 --- a/src/main/resources/view/PersonalPane.fxml +++ b/src/main/resources/view/PersonalPane.fxml @@ -5,6 +5,7 @@ + @@ -35,9 +36,10 @@ - +