fix(ui): singular field count in the task log

This commit is contained in:
sam committed 2026-10-25 01:24:21 +11:00
1 parent c7e2160582
commit afca2c164f
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -278,7 +278,7 @@ const details = (entry: LogEntry) =>
<template #cell-service="{ row }"><span class="font-mono text-xs text-fg-muted">{{ field(row, "service") }}</span></template>
<template #cell-message="{ row }">
<span class="font-mono text-xs [overflow-wrap:anywhere]">{{ row.message || row.msg || "" }}</span>
<span v-if="details(row).length" class="ml-2 text-xs text-fg-subtle">{{ details(row).length }} fields</span>
<span v-if="details(row).length" class="ml-2 text-xs text-fg-subtle">{{ details(row).length }} field{{ details(row).length === 1 ? "" : "s" }}</span>
</template>
<template #detail="{ row }">
<MetadataList v-if="details(row).length" :rows="details(row)" class="text-xs" />