Render word confidence as colored text instead of chips.

Keep click-to-seek and hover percentages, but drop the boxed pill styling so the transcript reads as normal flowing text.
This commit is contained in:
ben
2026-08-13 16:49:28 +02:00
parent 500a88a8c1
commit 7b9bf3ac7f
2 changed files with 9 additions and 6 deletions
+4 -4
View File
@@ -125,18 +125,18 @@ export function formatClock(seconds) {
export function wordConfidenceClass(probability) {
if (probability == null) {
return 'bg-zinc-400/20 text-zinc-700 dark:text-zinc-200';
return 'text-zinc-700 dark:text-zinc-200';
}
if (probability >= 0.85) {
return 'bg-teal-400/25 text-teal-800 dark:text-teal-200';
return 'text-teal-700 dark:text-teal-300';
}
if (probability >= 0.6) {
return 'bg-amber-400/25 text-amber-800 dark:text-amber-200';
return 'text-amber-700 dark:text-amber-300';
}
return 'bg-red-400/20 text-red-700 dark:text-red-300';
return 'text-red-700 dark:text-red-300';
}
/**