From 157287c68ce0e56c3723e70f90fd4d85a5bcc8dd Mon Sep 17 00:00:00 2001 From: filippo-ferrari Date: Thu, 12 Sep 2024 11:45:57 +0200 Subject: [PATCH] feat: export to CSV --- src/main/java/com/application/munera/views/MainLayout.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/application/munera/views/MainLayout.java b/src/main/java/com/application/munera/views/MainLayout.java index 6f16db4..dc9f354 100644 --- a/src/main/java/com/application/munera/views/MainLayout.java +++ b/src/main/java/com/application/munera/views/MainLayout.java @@ -86,13 +86,13 @@ public class MainLayout extends AppLayout { }); // Create the header layout and add all elements - HorizontalLayout header = new HorizontalLayout(exportToCSVButton, userInfoLayout, logout); + HorizontalLayout header = new HorizontalLayout(userInfoLayout, logout); header.setWidthFull(); // Make the header take the full width header.setDefaultVerticalComponentAlignment(FlexComponent.Alignment.CENTER); header.setJustifyContentMode(FlexComponent.JustifyContentMode.END); // Align items to the right header.getStyle().set("padding", "0 10px"); // Add padding around the header - addToNavbar(true, toggle, viewTitle); + addToNavbar(true, toggle, viewTitle, exportToCSVButton); addToNavbar(header); }