Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Fix modal transcript seek to use modal audio player
Murtaza Nasir7c19f33b0e5d
diff --git a/templates/modals/asr-editor-modal.html b/templates/modals/asr-editor-modal.htmlindex 869b7c08..5c0a4bf6 100644--- a/templates/modals/asr-editor-modal.html+++ b/templates/modals/asr-editor-modal.html@@ -111,7 +111,7 @@</td><td class="px-1 text-center align-middle"><div class="flex items-center justify-center gap-1">- <button @click="seekToSegmentTime(segment.start_time)" class="p-1.5 rounded hover:bg-[var(--bg-accent)] text-[var(--text-muted)] hover:text-[var(--text-accent)] transition-colors" :title="t('help.playFromHere')">+ <button @click="$refs.asrEditorAudioRef && ($refs.asrEditorAudioRef.currentTime = segment.start_time, $refs.asrEditorAudioRef.play())" class="p-1.5 rounded hover:bg-[var(--bg-accent)] text-[var(--text-muted)] hover:text-[var(--text-accent)] transition-colors" :title="t('help.playFromHere')"><i class="fas fa-play text-xs"></i></button><button @click="addSegmentBelow(segment._originalIndex)" class="p-1.5 rounded hover:bg-green-600/20 text-[var(--text-muted)] hover:text-green-500 transition-colors" :title="t('help.addSegmentBelow')">diff --git a/templates/modals/speaker-modal.html b/templates/modals/speaker-modal.htmlindex 5d117bea..abe47dee 100644--- a/templates/modals/speaker-modal.html+++ b/templates/modals/speaker-modal.html@@ -177,7 +177,7 @@<!-- Transcript Section (Virtual Scrolling for performance) --><div ref="speakerModalTranscriptRef"class="flex-grow overflow-y-auto custom-scrollbar speaker-modal-transcript min-h-0"- @click="seekAudioFromEvent"+ @click="(e) => { const t = e.target.closest('[data-start-time]')?.dataset.startTime; if (t && $refs.speakerModalAudioRef) { $refs.speakerModalAudioRef.currentTime = parseFloat(t); $refs.speakerModalAudioRef.play(); } }"@scroll="onSpeakerModalScroll"><div v-if="processedTranscription.isJson"><!-- Virtual scroll spacer (top) -->