From 3595da20044785a4e01e3c7d7991d1db920fcb28 Mon Sep 17 00:00:00 2001 From: filippo-ferrari Date: Tue, 2 Jul 2024 00:02:20 +0200 Subject: [PATCH] fix: wrong editor layout form i still cant understand where the misconfiguration is but whatever --- .../application/munera/views/expenses/CategoriesView.java | 2 +- .../com/application/munera/views/expenses/EventsView.java | 2 +- .../com/application/munera/views/expenses/PeopleView.java | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) 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);