feat(frontend): harmoniser navigation et libellés
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user