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
@@ -260,11 +260,14 @@
</span>
</div>
<div class="flex flex-wrap gap-1" x-show="whisperWords.length">
<div
class="mt-4 text-sm leading-relaxed"
x-show="whisperWords.length"
>
<template x-for="word in whisperWords" :key="word.key">
<button
type="button"
class="rounded px-1.5 py-0.5 text-xs tabular-nums"
class="mr-1 inline cursor-pointer hover:underline"
:class="wordConfidenceClass(word.probability)"
:title="(word.start != null ? formatClock(word.start) : '') + (word.probability != null ? (' · ' + Math.round(word.probability * 100) + '%') : '')"
@click="seekTo(word.start)"