This commit is contained in:
2026-05-07 21:04:27 +02:00
parent 6f3a63af12
commit fb6a0c7968
13 changed files with 101 additions and 48 deletions

View File

@@ -311,7 +311,7 @@
:key="categorie.id"
class="space-y-4"
>
<div class="flex items-center justify-between mb-8">
<div class="flex items-center mb-8">
<div class="flex items-center gap-4">
<h3 v-if="categorie.nom_categorie" class="text-2xl font-bold tracking-tight">
{{ categorie.nom_categorie }}
@@ -556,9 +556,12 @@
}
function formatKoToMo(sizeInKo) {
if (typeof sizeInKo !== "number") return ""
const size = Number(sizeInKo)
return `${(sizeInKo / 1024).toFixed(1)} Mo`
if (!Number.isFinite(size)) return ""
if (size < 1024) return `${Math.round(size)} Ko`
return `${(size / 1024).toFixed(1)} Mo`
}
function getInitials(fullName) {