feat(web): expand object class icon mapping
Map more TTS classes to icons, including multi-set icons for models and bags, and add a wrap-break-word class fix in the default viewer.
This commit is contained in:
@@ -34,7 +34,7 @@ export function DefaultViewer({ object }: { object: TTSObject }) {
|
||||
return (
|
||||
<div key={key} className="rounded-lg border border-zinc-800 bg-zinc-900 p-3">
|
||||
<dt className="font-mono text-xs uppercase text-zinc-500">{key}</dt>
|
||||
<dd className="mt-1 break-words text-zinc-200">
|
||||
<dd className="mt-1 wrap-break-words text-zinc-200">
|
||||
{typeof value === 'string' || typeof value === 'number' ? (
|
||||
value
|
||||
) : (
|
||||
@@ -64,4 +64,4 @@ function safeStringify(value: unknown): string {
|
||||
},
|
||||
2,
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user