fix(ui): metadata labels size to their content and wrap in table details

This commit is contained in:
sam committed 2026-10-25 01:22:59 +11:00
1 parent 849e24757d
commit c7e2160582
4 files changed
+4 -4

No files matched your search

@@ -134,7 +134,7 @@ function open(row: Row): void {
<TableCell v-if="trailing"><slot name="actions" :row="row" /></TableCell>
</TableRow>
<TableRow v-if="expandable && expanded.has(rowKey(row))" class="hover:bg-transparent">
<TableCell :colspan="shown.length + (trailing ? 1 : 0)" class="bg-muted/40">
<TableCell :colspan="shown.length + (trailing ? 1 : 0)" class="bg-muted/40 whitespace-normal">
<slot name="detail" :row="row" />
</TableCell>
</TableRow>
@@ -4,7 +4,7 @@ defineProps<{ rows: Row[] }>();
</script>
<template>
<dl class="grid grid-cols-[6.5rem_1fr] gap-x-3 gap-y-2 text-xs">
<dl class="grid grid-cols-[minmax(6.5rem,max-content)_minmax(0,1fr)] gap-x-3 gap-y-2 text-xs">
<template v-for="row in rows" :key="row.label">
<dt class="leading-5 text-fg-subtle [overflow-wrap:anywhere]">{{ row.label }}</dt>
<dd class="min-w-0 leading-5 [overflow-wrap:anywhere]" :class="row.mono && 'font-mono'">