diff --git a/src/main/java/com/application/munera/views/MainLayout.java b/src/main/java/com/application/munera/views/MainLayout.java index dc9f354..627d46a 100644 --- a/src/main/java/com/application/munera/views/MainLayout.java +++ b/src/main/java/com/application/munera/views/MainLayout.java @@ -69,7 +69,7 @@ public class MainLayout extends AppLayout { logout.getStyle().set("padding", "10px"); // Add padding to the logout button // Create the Export to CSV button - Button exportToCSVButton = new Button("Export to CSV"); + Button exportToCSVButton = new Button("Export Expenses to CSV"); exportToCSVButton.addClickListener(event -> { // Call the CSV service to create the CSV resource StreamResource resource = this.csvService.createCSVResource(this.expenseService.findAll()); @@ -84,6 +84,7 @@ public class MainLayout extends AppLayout { // Programmatically click the link to start the download downloadLink.getElement().callJsFunction("click"); }); + exportToCSVButton.getStyle().set("margin", "15px"); // Add margin to the Export to CSV button // Create the header layout and add all elements HorizontalLayout header = new HorizontalLayout(userInfoLayout, logout); @@ -133,4 +134,4 @@ public class MainLayout extends AppLayout { PageTitle title = getContent().getClass().getAnnotation(PageTitle.class); return title == null ? "" : title.value(); } -} \ No newline at end of file +}