diff --git a/src/app/projects/page.js b/src/app/projects/page.js index 4f131e4..57138cf 100644 --- a/src/app/projects/page.js +++ b/src/app/projects/page.js @@ -183,73 +183,12 @@ export default function ProjectListPage() { return ( -
- - - - {session?.user && ( - - )} - - - + + {/* Spacer */} +
+ + {/* Utility Actions - Icon Buttons */} +
+ + + + + +
@@ -380,6 +365,34 @@ export default function ProjectListPage() { ))} + + {session?.user && ( + + )} @@ -387,72 +400,119 @@ export default function ProjectListPage() { {/* Desktop always visible content */}
-
-
- - +
+ {/* Filters row */} +
+
+ + +
+ +
+ + +
+ +
+ + +
+ + {session?.user && ( + + )}
-
- - -
- -
- - -
- - {(filters.status !== 'all' || filters.type !== 'all' || filters.customer !== 'all' || searchTerm) && ( - - )} - -
- {t('projects.showingResults', { shown: filteredProjects.length, total: projects.length }) || `Wyświetlono ${filteredProjects.length} z ${projects.length} projektów`} + {/* Results and clear button row */} +
+
+ {t('projects.showingResults', { shown: filteredProjects.length, total: projects.length }) || `Wyświetlono ${filteredProjects.length} z ${projects.length} projektów`} +
+ + {(filters.status !== 'all' || filters.type !== 'all' || filters.customer !== 'all' || filters.mine || searchTerm) && ( + + )}
diff --git a/src/components/ui/Button.js b/src/components/ui/Button.js index 4372539..ddf7f9f 100644 --- a/src/components/ui/Button.js +++ b/src/components/ui/Button.js @@ -16,6 +16,7 @@ const buttonSizes = { sm: "px-3 py-1.5 text-sm", md: "px-4 py-2 text-sm", lg: "px-6 py-3 text-base", + icon: "p-2", }; const Button = forwardRef(