Skip to content

Commit

Permalink
Fix gap between tags
Browse files Browse the repository at this point in the history
Co-authored-by: Tan Yi Xian <>
  • Loading branch information
RichDom2185 committed Oct 27, 2022
1 parent d37ce46 commit fe981b7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/seedu/foodrem/views/TagsWithMessageView.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import javafx.scene.Node;
import javafx.scene.control.Label;
import javafx.scene.control.Separator;
import javafx.scene.layout.HBox;
import javafx.scene.layout.FlowPane;
import javafx.scene.layout.VBox;
import seedu.foodrem.viewmodels.TagsWithMessage;

Expand All @@ -29,8 +29,9 @@ public static Node from(TagsWithMessage tagsWithMessage) {
messageView.setWrapText(true);
final Separator separator = new Separator();
separator.getStyleClass().add("lined-separator");
final HBox itemView = new HBox(TagsView.from(tagsWithMessage.getTags()));
itemView.setSpacing(SPACING_UNIT);
final FlowPane itemView = new FlowPane(TagsView.from(tagsWithMessage.getTags()));
itemView.setVgap(SPACING_UNIT);
itemView.setHgap(SPACING_UNIT);

container.getChildren().addAll(messageView, separator, itemView);
return container;
Expand Down

0 comments on commit fe981b7

Please sign in to comment.