feat(frontend): harmoniser navigation et libellés

This commit is contained in:
Matthieu
2025-09-24 09:39:15 +02:00
parent 83b3e33b1e
commit f924c65ab8
8 changed files with 210 additions and 118 deletions

View File

@@ -2,7 +2,7 @@
<section class="space-y-4" aria-live="polite">
<header class="flex flex-col gap-1 sm:flex-row sm:items-end sm:justify-between">
<div>
<h2 class="text-xl font-semibold text-base-content">Types de modèles</h2>
<h2 class="text-xl font-semibold text-base-content">Catégories enregistrées</h2>
<p class="text-sm text-base-content/70">
{{ totalLabel }}
</p>
@@ -23,8 +23,8 @@
<div v-else-if="items.length === 0" class="rounded-xl border border-dashed border-base-200 p-10 text-center">
<IconLucideInbox class="mx-auto h-12 w-12 text-base-content/30" aria-hidden="true" />
<h3 class="mt-4 text-lg font-medium text-base-content">Aucun type trouvé</h3>
<p class="text-sm text-base-content/70">Ajustez votre recherche ou créez un nouveau type.</p>
<h3 class="mt-4 text-lg font-medium text-base-content">Aucune catégorie trouvée</h3>
<p class="text-sm text-base-content/70">Ajustez votre recherche ou créez une nouvelle catégorie.</p>
</div>
<div v-else class="space-y-6">
@@ -155,7 +155,7 @@ const canGoNext = computed(() => props.offset + props.limit < props.total);
const totalLabel = computed(() => {
if (props.total === 0) return 'Aucun résultat';
if (props.total === 1) return '1 type trouvé';
return `${props.total} types trouvés`;
if (props.total === 1) return '1 catégorie trouvée';
return `${props.total} catégories trouvées`;
});
</script>