From 45813b17ade99544c2875e0717accfff5c41bd7c Mon Sep 17 00:00:00 2001 From: Florian Trayon <26360935+FlorianLeChat@users.noreply.github.com> Date: Fri, 23 Feb 2024 21:12:20 +0100 Subject: [PATCH] Improved dashboard user navigation on mobile devices --- app/[locale]/dashboard/components/column-toggle.tsx | 6 +++--- app/[locale]/dashboard/components/data-table.tsx | 2 +- app/[locale]/dashboard/components/file-upload.tsx | 6 +++--- app/[locale]/dashboard/components/pagination.tsx | 2 +- app/[locale]/dashboard/page.tsx | 10 +++++----- 5 files changed, 13 insertions(+), 13 deletions(-) diff --git a/app/[locale]/dashboard/components/column-toggle.tsx b/app/[locale]/dashboard/components/column-toggle.tsx index 83c7770..3f07aa4 100644 --- a/app/[locale]/dashboard/components/column-toggle.tsx +++ b/app/[locale]/dashboard/components/column-toggle.tsx @@ -35,12 +35,12 @@ export default function ColumnToggle( { - + -

Colonnes

+

Colonnes

{/* Menu de sélection des colonnes */} diff --git a/app/[locale]/dashboard/components/data-table.tsx b/app/[locale]/dashboard/components/data-table.tsx index a2165f3..8afbf17 100644 --- a/app/[locale]/dashboard/components/data-table.tsx +++ b/app/[locale]/dashboard/components/data-table.tsx @@ -115,7 +115,7 @@ export default function DataTable( { data }: { data: FileAttributes[] } ) basePath={`${ process.env.__NEXT_ROUTER_BASEPATH }/api/user/auth`} > {/* Filtrage et tri des données */} -
+
{/* Filtrage par nom */} - + -

+

Ajouter un fichier

diff --git a/app/[locale]/dashboard/components/pagination.tsx b/app/[locale]/dashboard/components/pagination.tsx index 4828c96..595ef2a 100644 --- a/app/[locale]/dashboard/components/pagination.tsx +++ b/app/[locale]/dashboard/components/pagination.tsx @@ -30,7 +30,7 @@ export default function Pagination( { table }: PaginationProps ) // Affichage du rendu HTML du composant. return ( -
+
{/* Nombre de lignes sélectionnées */}

{table.getFilteredSelectedRowModel().rows.length} sur{" "} diff --git a/app/[locale]/dashboard/page.tsx b/app/[locale]/dashboard/page.tsx index 6b1fb33..6a921fd 100644 --- a/app/[locale]/dashboard/page.tsx +++ b/app/[locale]/dashboard/page.tsx @@ -136,9 +136,9 @@ export default async function Page( { // Affichage du rendu HTML de la page. return ( <> -

+
{/* Titre du site */} -

+

💾 {meta.title as string}

@@ -149,7 +149,7 @@ export default async function Page( { /> {/* Éléments latéraux */} -
-
+
{/* Titre et description de la page */}

Tableau de bord @@ -170,7 +170,7 @@ export default async function Page( {

{/* Barre verticale de séparation */} - + {/* Tableau des fichiers téléversés */}