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:
2026-08-08 12:45:40 +08:00
parent fad784c03f
commit 9619cc3863
3 changed files with 21 additions and 8 deletions
+2 -2
View File
@@ -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,
);
}
}