Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Mobile detail sweep, round 1: transcript panel toolbar + audio player buttons brought in line with the design-system primitives — (1) mobile-transcript-panel.html toolbar rebuilt: the bespoke .follow-player-control / .view-mode-toggle / .toggle-button / .copy-btn classes that gave it a different visual language from the rest of the app are gone; follow-player toggle is now a .btn--icon.btn--sm with an obvious active state (text-accent + bg-accent inline style) so on/off reads at a glance, simple/bubble view mode is now a segmented mini-tabs control wrapped in a single rounded bg-tertiary container with each option using the same active-state colour rhythm, copy/download/edit are .btn--icon.btn--sm matching the desktop tab-bar; (2) the reprocess action in the transcription-error display switched from a bespoke 'px-3 py-2 bg-accent text-white' rectangle to .btn.btn--primary so it matches the rest of the modal CTAs; (3) audio-player.html: the four bespoke 'w-8 h-8 rounded-lg hover:bg-primary text-accent' buttons (speed / volume / download / fullscreen / video-toggle) all switched to .btn--icon.btn--sm with the accent-colour applied via inline style only when relevant, so they share the visual rhythm of the rest of the icon buttons in the app; the main play button at line 144 (.player-play-button) is preserved as a deliberately distinctive primary action; fullscreen-overlay video controls keep their white-on-overlay palette since that context warrants it

Murtaza Nasird8f9ebbb9719
diff --git a/templates/components/detail/audio-player.html b/templates/components/detail/audio-player.html
index b001ebb5..1e8e89ab 100644
--- a/templates/components/detail/audio-player.html
+++ b/templates/components/detail/audio-player.html
@@ -153,12 +153,15 @@
<span class="text-xs text-[var(--text-muted)] font-mono">${ formatAudioTime(audioDuration) }</span>
</div>
- <!-- Playback Speed Control -->
+ <!-- Playback Speed Control. Uses .btn--icon.btn--sm
+ for visual rhythm with the other player buttons;
+ speed text remains as inner content. -->
<div class="relative flex-shrink-0">
<button ref="speedButtonMobile"
@click="showSpeedMenu = !showSpeedMenu; $nextTick(() => updateSpeedMenuPosition($refs.speedButtonMobile))"
data-speed-toggle
- class="w-8 h-8 flex items-center justify-center rounded-lg hover:bg-[var(--bg-primary)] text-[var(--text-accent)] hover:opacity-80 transition-all"
+ class="btn btn--icon btn--sm"
+ style="color: var(--text-accent);"
:title="t('tooltips.playbackSpeed') || 'Playback speed'">
<span class="text-xs font-semibold font-mono">${ formatPlaybackRate(playbackRate) }</span>
</button>
@@ -188,8 +191,8 @@
@mouseenter="showVolumeSlider = true"
@mouseleave="showVolumeSlider = false">
<button @click="toggleAudioMute"
- class="w-8 h-8 flex items-center justify-center rounded-lg hover:bg-[var(--bg-primary)] transition-all"
- :class="audioIsMuted || playerVolume === 0 ? 'text-[var(--text-muted)]' : 'text-[var(--text-accent)]'"
+ class="btn btn--icon btn--sm"
+ :style="audioIsMuted || playerVolume === 0 ? '' : 'color: var(--text-accent);'"
:title="audioIsMuted ? t('tooltips.unmute') : t('tooltips.mute')">
<i :class="audioIsMuted || playerVolume === 0 ? 'fas fa-volume-mute' : playerVolume < 0.5 ? 'fas fa-volume-down' : 'fas fa-volume-up'" class="text-sm"></i>
</button>
@@ -212,7 +215,8 @@
<!-- Download Button -->
<a :href="'/audio/' + selectedRecording.id + '?download=true'"
download
- class="w-8 h-8 flex items-center justify-center rounded-lg hover:bg-[var(--bg-primary)] text-[var(--text-accent)] hover:opacity-80 transition-all flex-shrink-0"
+ class="btn btn--icon btn--sm flex-shrink-0"
+ style="color: var(--text-accent);"
:title="t('buttons.downloadAudio') || 'Download audio'">
<i class="fas fa-download text-sm"></i>
</a>
@@ -220,7 +224,8 @@
<!-- Video Fullscreen Button -->
<button v-if="selectedRecording.mime_type && selectedRecording.mime_type.startsWith('video/') && !videoCollapsed"
@click="enterVideoFullscreen"
- class="w-8 h-8 flex items-center justify-center rounded-lg hover:bg-[var(--bg-primary)] text-[var(--text-accent)] hover:opacity-80 transition-all flex-shrink-0"
+ class="btn btn--icon btn--sm flex-shrink-0"
+ style="color: var(--text-accent);"
:title="t('tooltips.fullscreenVideo')">
<i class="fas fa-expand text-sm"></i>
</button>
@@ -228,8 +233,8 @@
<!-- Video Toggle Button -->
<button v-if="selectedRecording.mime_type && selectedRecording.mime_type.startsWith('video/')"
@click="videoCollapsed = !videoCollapsed"
- class="w-8 h-8 flex items-center justify-center rounded-lg hover:bg-[var(--bg-primary)] transition-all flex-shrink-0"
- :class="videoCollapsed ? 'text-[var(--text-muted)]' : 'text-[var(--text-accent)]'"
+ class="btn btn--icon btn--sm flex-shrink-0"
+ :style="videoCollapsed ? '' : 'color: var(--text-accent);'"
:title="videoCollapsed ? t('tooltips.showVideo') : t('tooltips.hideVideo')">
<i :class="videoCollapsed ? 'fas fa-eye-slash' : 'fas fa-eye'" class="text-sm"></i>
</button>
diff --git a/templates/components/detail/mobile-transcript-panel.html b/templates/components/detail/mobile-transcript-panel.html
index 81626d88..8f913560 100644
--- a/templates/components/detail/mobile-transcript-panel.html
+++ b/templates/components/detail/mobile-transcript-panel.html
@@ -1,24 +1,47 @@
-<!-- Mobile Transcript Panel -->
-<div v-if="mobileTab === 'transcript'" class="h-full flex flex-col space-y-4">
- <div class="flex items-center justify-between gap-2 flex-shrink-0 px-3">
- <!-- Follow Player Checkbox -->
- <div v-if="processedTranscription.isJson && processedTranscription.hasDialogue"
- class="follow-player-control text-[var(--text-muted)]"
- @click="toggleFollowPlayerMode"
- :title="followPlayerMode ? t('tooltips.followPlayerEnabled') : t('tooltips.followPlayerDisabled')">
- <input type="checkbox"
- :checked="followPlayerMode"
- @click.stop="toggleFollowPlayerMode">
- <i class="fas fa-arrows-alt-v follow-icon"></i>
- </div>
- <div class="flex items-center gap-2">
- <div v-if="processedTranscription.hasDialogue" class="view-mode-toggle">
- <button @click="toggleTranscriptionViewMode" :class="['toggle-button', transcriptionViewMode === 'simple' ? 'active' : '']"><i class="fas fa-list"></i></button>
- <button @click="toggleTranscriptionViewMode" :class="['toggle-button', transcriptionViewMode === 'bubble' ? 'active' : '']"><i class="fas fa-comments"></i></button>
+<!-- Mobile Transcript Panel. Toolbar consolidated to use the design
+ system primitives (.btn .btn--icon .btn--sm, segmented .tabs for
+ the simple/bubble view toggle) so it matches the desktop look
+ and feel. Previous version used bespoke .copy-btn, .toggle-button,
+ .follow-player-control classes that read as a different visual
+ language from the rest of the app. -->
+<div v-if="mobileTab === 'transcript'" class="h-full flex flex-col">
+ <div class="flex items-center justify-between gap-2 flex-shrink-0 px-3 py-2">
+ <!-- Follow-player toggle: now a .btn--icon toggle with a
+ distinct active state (text-accent + bg-accent) so the
+ on/off state reads at a glance. -->
+ <button v-if="processedTranscription.isJson && processedTranscription.hasDialogue"
+ @click="toggleFollowPlayerMode"
+ class="btn btn--icon btn--sm"
+ :style="followPlayerMode ? 'color: var(--text-accent); background: var(--bg-accent);' : ''"
+ :title="followPlayerMode ? t('tooltips.followPlayerEnabled') : t('tooltips.followPlayerDisabled')">
+ <i class="fas fa-arrows-alt-v"></i>
+ </button>
+ <span v-else></span>
+
+ <div class="flex items-center gap-1">
+ <!-- Simple / bubble view toggle as a segmented mini-tabs
+ control. Uses the same .btn--icon visual rhythm but
+ wrapped in a single rounded container so they read
+ as a connected segmented switch. -->
+ <div v-if="processedTranscription.hasDialogue"
+ class="inline-flex items-stretch rounded-md p-0.5 mr-1"
+ style="background: var(--bg-tertiary);">
+ <button @click="toggleTranscriptionViewMode"
+ class="px-2 py-1 rounded text-xs transition-colors"
+ :style="transcriptionViewMode === 'simple' ? 'background: var(--bg-accent); color: var(--text-accent);' : 'color: var(--text-muted);'"
+ :title="t('tooltips.simpleView') || 'Simple view'">
+ <i class="fas fa-list"></i>
+ </button>
+ <button @click="toggleTranscriptionViewMode"
+ class="px-2 py-1 rounded text-xs transition-colors"
+ :style="transcriptionViewMode === 'bubble' ? 'background: var(--bg-accent); color: var(--text-accent);' : 'color: var(--text-muted);'"
+ :title="t('tooltips.bubbleView') || 'Bubble view'">
+ <i class="fas fa-comments"></i>
+ </button>
</div>
- <button @click="copyTranscription" class="copy-btn" :title="t('tooltips.copyTranscript')"><i class="fas fa-copy"></i></button>
- <button @click="downloadTranscript" v-if="selectedRecording && selectedRecording.transcription" class="copy-btn" :title="t('tooltips.downloadTranscriptWithTemplate')"><i class="fas fa-download"></i></button>
- <button @click="openTranscriptionEditor" v-if="selectedRecording && selectedRecording.transcription" class="copy-btn" :title="t('tooltips.editTranscript')"><i class="fas fa-edit"></i></button>
+ <button @click="copyTranscription" class="btn btn--icon btn--sm" :title="t('tooltips.copyTranscript')"><i class="fas fa-copy"></i></button>
+ <button @click="downloadTranscript" v-if="selectedRecording && selectedRecording.transcription" class="btn btn--icon btn--sm" :title="t('tooltips.downloadTranscriptWithTemplate')"><i class="fas fa-download"></i></button>
+ <button @click="openTranscriptionEditor" v-if="selectedRecording && selectedRecording.transcription" class="btn btn--icon btn--sm" :title="t('tooltips.editTranscript')"><i class="fas fa-edit"></i></button>
</div>
</div>
<div class="flex-grow overflow-y-auto mobile-content-box relative">
@@ -93,8 +116,9 @@
<div class="mt-3 pt-3 border-t border-[var(--border-secondary)]">
<button @click="reprocessTranscription(selectedRecording.id)"
v-if="selectedRecording.can_edit !== false"
- class="w-full px-3 py-2 bg-[var(--bg-accent)] hover:bg-[var(--bg-accent-hover)] text-white rounded-lg transition-colors text-sm">
- <i class="fas fa-redo-alt mr-2"></i>Reprocess
+ class="btn btn--primary w-full">
+ <i class="fas fa-redo-alt"></i>
+ <span>Reprocess</span>
</button>
</div>
</div>