fix: wrong editor layout form

i still cant understand where the misconfiguration is but whatever
This commit is contained in:
filippo-ferrari 2024-07-02 00:02:20 +02:00
parent a656f87741
commit 3595da2004
3 changed files with 7 additions and 3 deletions

View file

@ -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();

View file

@ -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();

View file

@ -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);