fix(dashboard): fixed minor ui issues and errors
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ export function KeyValue({ href, onClick, name, value }: KeyValueProps) {
|
||||
<div className="bg-black/5 p-1 px-2 capitalize">{name}</div>
|
||||
<div
|
||||
className={cn(
|
||||
'font-mono overflow-hidden text-ellipsis whitespace-nowrap bg-card p-1 px-2 text-highlight',
|
||||
'font-mono overflow-hidden max-w-[300px] text-ellipsis whitespace-nowrap bg-card p-1 px-2 text-highlight',
|
||||
clickable && 'group-hover:underline',
|
||||
)}
|
||||
>
|
||||
|
||||
Reference in New Issue
Block a user