diff --git a/src/main/java/com/application/munera/views/expenses/CategoriesView.java b/src/main/java/com/application/munera/views/expenses/CategoriesView.java index f7ba8e3..2c4162c 100644 --- a/src/main/java/com/application/munera/views/expenses/CategoriesView.java +++ b/src/main/java/com/application/munera/views/expenses/CategoriesView.java @@ -51,7 +51,7 @@ public class CategoriesView extends Div implements BeforeEnterObserver { public CategoriesView(CategoryService categoryService) { this.categoryService = categoryService; - addClassNames("categories-view"); + addClassNames("expenses-view"); // Create UI SplitLayout splitLayout = new SplitLayout(); diff --git a/src/main/java/com/application/munera/views/expenses/EventsView.java b/src/main/java/com/application/munera/views/expenses/EventsView.java index ceba5d5..c38c553 100644 --- a/src/main/java/com/application/munera/views/expenses/EventsView.java +++ b/src/main/java/com/application/munera/views/expenses/EventsView.java @@ -59,7 +59,7 @@ public class EventsView extends Div implements BeforeEnterObserver { public EventsView(EventService eventService, PersonService personService) { this.eventService = eventService; this.personService = personService; - addClassNames("events-view"); + addClassNames("expenses-view"); // Create UI SplitLayout splitLayout = new SplitLayout(); diff --git a/src/main/java/com/application/munera/views/expenses/PeopleView.java b/src/main/java/com/application/munera/views/expenses/PeopleView.java index d232a98..35a7fbb 100644 --- a/src/main/java/com/application/munera/views/expenses/PeopleView.java +++ b/src/main/java/com/application/munera/views/expenses/PeopleView.java @@ -58,7 +58,7 @@ public class PeopleView extends Div implements BeforeEnterObserver { public PeopleView(PersonService personService) { this.personService = personService; - addClassNames("people-view"); + addClassNames("expenses-view"); // Create UI SplitLayout splitLayout = new SplitLayout(); @@ -178,6 +178,10 @@ public class PeopleView extends Div implements BeforeEnterObserver { firstName = new TextField("First Name"); lastName = new TextField("Last Name"); email = new EmailField("Email"); + + // We set the maximum parallel columns to 1 + formLayout.setResponsiveSteps(new FormLayout.ResponsiveStep("0", 1)); + formLayout.add(firstName, lastName, email); editorDiv.add(formLayout); createButtonLayout(editorLayoutDiv);