diff --git a/src/main/java/seedu/address/ui/PersonCard.java b/src/main/java/seedu/address/ui/PersonCard.java index 3f0c67770d8..12de8e1e019 100644 --- a/src/main/java/seedu/address/ui/PersonCard.java +++ b/src/main/java/seedu/address/ui/PersonCard.java @@ -34,8 +34,6 @@ public class PersonCard extends UiPart { private Label id; @FXML private Label phone; - // @FXML - // private Label address; @FXML private Label email; @FXML @@ -50,10 +48,13 @@ public PersonCard(Person person, int displayedIndex) { id.setText(displayedIndex + ". "); name.setText(person.getName().fullName); phone.setText(person.getPhone().value); - // address.setText(person.getAddress().value); // to be removed completely email.setText(person.getEmail().value); person.getTags().stream() .sorted(Comparator.comparing(tag -> tag.tagName)) .forEach(tag -> tags.getChildren().add(new Label(tag.tagName))); + + // add horizontal and vertical gaps for the tags FlowPane + tags.setHgap(5); + tags.setVgap(5); } }