Skip to content

Commit

Permalink
Fix address hidden contents
Browse files Browse the repository at this point in the history
  • Loading branch information
SHni99 committed Mar 25, 2023
1 parent 26f37b1 commit 810310c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 12 deletions.
8 changes: 0 additions & 8 deletions src/main/java/seedu/address/model/tag/AffiliationTag.java

This file was deleted.

2 changes: 1 addition & 1 deletion src/main/java/seedu/address/model/tag/ModuleTag.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public boolean equals(Object other) {
*/
@Override
public String tagColor() {
return "#006400";
return "#193E04";
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/model/tag/Tag.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions src/main/java/seedu/address/ui/PersonalPane.java
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down
6 changes: 4 additions & 2 deletions src/main/resources/view/PersonalPane.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<?import javafx.scene.layout.*?>
<?import javafx.scene.image.ImageView?>

<?import javafx.scene.text.Text?>
<HBox id="personalPane" fx:id="personalPane" xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml">
<GridPane HBox.hgrow="ALWAYS">
Expand Down Expand Up @@ -35,9 +36,10 @@
<Label fx:id="phone" styleClass="cell_small_label" text="\$phone"/>
</HBox>
<HBox alignment="CENTER">
<Label text="Address: "/>
<Label fx:id="address" styleClass="cell_small_label" text="Address: \$address"/>
<Label text="Address: " minWidth="60" wrapText="true"/>
<Label fx:id="address" styleClass="cell_small_label" text="\$address"/>
</HBox>

<HBox alignment="CENTER">
<Label text="Email: "/>
<Label fx:id="email" styleClass="cell_small_label" text="\$email"/>
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/view/Style.css
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@
-fx-font-size: 15px;
-fx-text-fill: #010504;
-fx-padding: 5px;
-fx-text-alignment: center;
}

.stack-pane {
Expand Down

0 comments on commit 810310c

Please sign in to comment.