fix(dashboard): fixed minor ui issues and errors

This commit is contained in:
Carl-Gerhard Lindesvärd
2024-10-16 23:07:41 +02:00
parent ffbb08a5de
commit 4846390531
2 changed files with 8 additions and 2 deletions

View File

@@ -27,7 +27,13 @@ function Info({ title, value }: { title: string; value: string }) {
return (
<div className="col gap-2">
<div className="capitalize text-muted-foreground">{title}</div>
<div className="truncate font-mono">{value || '-'}</div>
<div className="truncate font-mono">
{value
? typeof value === 'string'
? value
: JSON.stringify(value)
: '-'}
</div>
</div>
);
}