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:
@@ -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)"
|
||||
|
||||
Reference in New Issue
Block a user