Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Move audio player to a persistent bottom bar spanning the transcript and right rail (desktop-bottom-player.html), pulled out of desktop-right-panel.html so the right rail starts immediately with the Summary/Notes/Events tab strip; bar is a single-row layout — play/pause, time, full-width scrubber, speed, volume, download, fullscreen — anchored at the bottom of the recording-detail screen and always within reach (Spotify pattern); inline video display lives only in fullscreen mode now; test_video_retention updated to point at the new template path
Murtaza Nasir478b7c06965a
diff --git a/bottom-player.png b/bottom-player.pngnew file mode 100644index 00000000..6afd01f3Binary files /dev/null and b/bottom-player.png differdiff --git a/templates/components/detail-view.html b/templates/components/detail-view.htmlindex cdd1cb1b..c158e2fc 100644--- a/templates/components/detail-view.html+++ b/templates/components/detail-view.html@@ -51,6 +51,11 @@{% include 'components/detail/desktop-right-panel.html' %}</div>++ <!-- Persistent Bottom Audio Player. Spans the transcript + right+ rail. Stays anchored to the bottom of the recording-detail+ screen so the player is always within reach. -->+ {% include 'components/detail/desktop-bottom-player.html' %}</div></div>diff --git a/templates/components/detail/desktop-bottom-player.html b/templates/components/detail/desktop-bottom-player.htmlnew file mode 100644index 00000000..969783bf--- /dev/null+++ b/templates/components/detail/desktop-bottom-player.html@@ -0,0 +1,202 @@+<!-- Persistent Bottom Audio Player (design system v1).+ Spans the full width of the main content area (transcript + right+ rail) and stays anchored to the bottom of the recording-detail+ screen so the player is always within reach — Spotify-style.+ Pulled out of desktop-right-panel.html so the right column no+ longer carries the player. -->+<div class="flex-shrink-0 border-t border-[var(--border-primary)] bg-[var(--bg-secondary)] px-5 py-2">+ <!-- Show message if audio has been deleted -->+ <div v-if="selectedRecording.audio_deleted_at"+ class="text-[var(--text-muted)] text-sm flex items-center gap-2 py-1">+ <i class="fas fa-info-circle"></i>+ <span v-text="t('help.audioDeletedMessage')"></span>+ </div>++ <!-- Show message for incognito recordings (no audio stored) -->+ <div v-else-if="selectedRecording.incognito"+ class="text-[var(--text-muted)] text-sm flex items-center gap-2 py-1">+ <i class="fas fa-user-secret"></i>+ <span v-text="t('incognito.audioNotStored')"></span>+ </div>++ <!-- Audio Player -->+ <div v-else>+ <!-- Video/Audio element wrapped in Teleport for fullscreen -->+ <Teleport to="body" :disabled="!videoFullscreen">+ <div :class="videoFullscreen ? 'video-fullscreen-overlay' : ''"+ @mousemove="videoFullscreen && handleFullscreenMouseMove()"+ @click.self="videoFullscreen && toggleAudioPlayback()">++ <component :is="selectedRecording.mime_type && selectedRecording.mime_type.startsWith('video/') ? 'video' : 'audio'"+ ref="audioPlayerElement"+ :src="'/audio/' + selectedRecording.id"+ :volume="playerVolume"+ @play="handleAudioPlayPause"+ @pause="handleAudioPlayPause"+ @timeupdate="handleCustomAudioTimeUpdate"+ @loadedmetadata="handleAudioLoadedMetadata"+ @durationchange="handleAudioDurationChange"+ @ended="handleAudioEnded"+ @waiting="handleAudioWaiting"+ @canplay="handleAudioCanPlay"+ @click="selectedRecording.mime_type && selectedRecording.mime_type.startsWith('video/') && toggleAudioPlayback()"+ @dblclick="selectedRecording.mime_type && selectedRecording.mime_type.startsWith('video/') && !videoFullscreen && enterVideoFullscreen()"+ :class="selectedRecording.mime_type && selectedRecording.mime_type.startsWith('video/')+ ? (videoFullscreen ? 'video-fullscreen-video' : 'hidden')+ : 'hidden'">+ </component>++ <!-- Fullscreen Subtitle Overlay -->+ <div v-if="videoFullscreen && currentSubtitle"+ class="video-fullscreen-subtitle"+ :class="{ 'subtitle-shifted': fullscreenControlsVisible }">+ <span v-if="currentSubtitle.speaker"+ class="video-fullscreen-subtitle-speaker"+ :style="{ color: 'var(--' + currentSubtitle.color + ')' }">${ currentSubtitle.speaker }:</span>+ <span>${ currentSubtitle.text }</span>+ </div>++ <!-- Fullscreen Control Bar -->+ <div v-if="videoFullscreen"+ class="video-fullscreen-controls"+ :class="{ visible: fullscreenControlsVisible }"+ @mousemove.stop="handleFullscreenMouseMove()">++ <div class="px-4 mb-2">+ <div class="w-full h-5 rounded-full cursor-pointer relative group flex items-center"+ @mousedown="startProgressDrag"+ @touchstart.prevent="startProgressDrag">+ <div class="progress-track w-full h-1 rounded-full relative bg-white/30">+ <div class="h-full bg-white rounded-full pointer-events-none"+ :style="{ width: audioProgressPercent + '%' }"></div>+ </div>+ <div class="absolute top-1/2 w-3 h-3 bg-white rounded-full shadow-md transition-transform group-hover:scale-125 pointer-events-none -translate-y-1/2"+ :style="{ left: 'clamp(0px, calc(' + audioProgressPercent + '% - 6px), calc(100% - 12px))' }"></div>+ </div>+ </div>++ <div class="flex items-center gap-3 px-4 pb-4">+ <button @click.stop="toggleAudioPlayback"+ class="w-10 h-10 flex items-center justify-center rounded-full text-white hover:bg-white/20 transition-all">+ <i :class="audioIsPlaying ? 'fas fa-pause' : 'fas fa-play'" class="text-lg" :style="!audioIsPlaying ? 'margin-left: 2px' : ''"></i>+ </button>+ <div class="flex items-center gap-2">+ <button @click.stop="toggleAudioMute"+ class="w-8 h-8 flex items-center justify-center rounded-full text-white hover:bg-white/20 transition-all">+ <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>+ <input type="range" min="0" max="1" step="0.05"+ :value="audioIsMuted ? 0 : playerVolume"+ @input="(e) => setAudioVolume(parseFloat(e.target.value))"+ class="fullscreen-volume-slider w-20">+ </div>+ <div class="flex items-baseline gap-1 text-white">+ <span class="text-sm font-mono">${ formatAudioTime(displayCurrentTime) }</span>+ <span class="text-xs opacity-60">/</span>+ <span class="text-xs opacity-60 font-mono">${ formatAudioTime(audioDuration) }</span>+ </div>+ <div class="flex-1"></div>+ <button @click.stop="cyclePlaybackRate"+ class="px-2 h-8 flex items-center justify-center rounded-lg text-white hover:bg-white/20 transition-all"+ title="Playback speed">+ <span class="text-xs font-semibold font-mono">${ formatPlaybackRate(playbackRate) }</span>+ </button>+ <button @click.stop="exitVideoFullscreen"+ class="w-8 h-8 flex items-center justify-center rounded-full text-white hover:bg-white/20 transition-all"+ :title="t('tooltips.exitFullscreen')">+ <i class="fas fa-compress text-sm"></i>+ </button>+ </div>+ </div>+ </div>+ </Teleport>++ <!-- Normal bottom-bar controls. Single row: play / time / scrubber / speed / volume / actions -->+ <div v-show="!videoFullscreen" class="flex items-center gap-3 min-w-0">+ <!-- Play/Pause -->+ <button @click="toggleAudioPlayback"+ class="w-10 h-10 flex items-center justify-center rounded-full player-play-button transition-all duration-200 flex-shrink-0 shadow-md hover:shadow-lg hover:scale-105"+ :title="audioIsPlaying ? t('tooltips.pause') : t('tooltips.play')">+ <i :class="audioIsPlaying ? 'fas fa-pause' : 'fas fa-play'" class="text-base" :style="!audioIsPlaying ? 'margin-left: 2px' : ''"></i>+ </button>++ <!-- Time -->+ <div class="flex items-baseline gap-1 flex-shrink-0 min-w-0 font-mono">+ <span class="text-sm font-semibold" :class="isDraggingProgress ? 'text-[var(--text-accent)]' : 'text-[var(--text-primary)]'">${ formatAudioTime(displayCurrentTime) }</span>+ <span class="text-xs text-[var(--text-muted)]">/</span>+ <span class="text-xs text-[var(--text-muted)]">${ formatAudioTime(audioDuration) }</span>+ </div>++ <!-- Progress bar (takes all remaining width) -->+ <div class="flex-1 h-4 rounded-full cursor-pointer relative group flex items-center min-w-0"+ @mousedown="startProgressDrag">+ <div class="progress-track w-full h-2 rounded-full relative bg-[var(--border-accent)] opacity-40">+ <div class="h-full bg-[var(--text-accent)] rounded-full pointer-events-none opacity-100"+ :style="{ width: audioProgressPercent + '%' }"></div>+ </div>+ <div class="absolute top-1/2 w-4 h-4 bg-[var(--text-accent)] rounded-full shadow-md transition-transform group-hover:scale-110 pointer-events-none -translate-y-1/2"+ :style="{ left: 'clamp(0px, calc(' + audioProgressPercent + '% - 8px), calc(100% - 16px))' }"+ style="box-shadow: 0 2px 6px rgba(0,0,0,0.3);"></div>+ </div>++ <!-- Playback speed -->+ <div class="relative flex-shrink-0">+ <button ref="speedButtonDesktop"+ @click="showSpeedMenu = !showSpeedMenu; $nextTick(() => updateSpeedMenuPosition($refs.speedButtonDesktop))"+ data-speed-toggle+ class="btn btn--icon"+ style="color: var(--text-accent); width: auto; padding: 0 var(--sp-2);"+ :title="t('tooltips.playbackSpeed') || 'Playback speed'">+ <span class="text-xs font-semibold font-mono">${ formatPlaybackRate(playbackRate) }</span>+ </button>+ <Teleport to="body">+ <div v-if="showSpeedMenu" @click.stop+ data-speed-dropdown+ class="fixed surface-raised z-[9999] speed-dropdown overflow-y-auto"+ :style="speedMenuPosition">+ <div class="py-0.5">+ <button v-for="speed in playbackSpeeds" :key="speed"+ @mousedown.prevent="setPlaybackRate(speed); showSpeedMenu = false"+ class="w-full px-2 py-0.5 text-[11px] font-mono text-left hover:bg-[var(--bg-tertiary)] transition-colors"+ :class="speed === playbackRate ? 'text-[var(--text-accent)] font-semibold' : 'text-[var(--text-primary)]'">+ ${ speed }x+ </button>+ </div>+ </div>+ </Teleport>+ </div>++ <!-- Volume -->+ <div class="hidden md:flex items-center gap-1 flex-shrink-0">+ <button @click="toggleAudioMute"+ class="btn btn--icon"+ :style="audioIsMuted || playerVolume === 0 ? 'color: var(--text-muted);' : '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>+ <input type="range" min="0" max="1" step="0.05"+ :value="audioIsMuted ? 0 : playerVolume"+ @input="(e) => setAudioVolume(parseFloat(e.target.value))"+ class="volume-slider w-20">+ </div>++ <!-- Download -->+ <a :href="'/audio/' + selectedRecording.id + '?download=true'"+ download+ class="btn btn--icon"+ style="color: var(--text-accent);"+ :title="t('buttons.downloadAudio') || 'Download audio'">+ <i class="fas fa-download text-sm"></i>+ </a>++ <!-- Video fullscreen -->+ <button v-if="selectedRecording.mime_type && selectedRecording.mime_type.startsWith('video/')"+ @click="enterVideoFullscreen"+ class="btn btn--icon"+ style="color: var(--text-accent);"+ :title="t('tooltips.fullscreenVideo')">+ <i class="fas fa-expand text-sm"></i>+ </button>+ </div>+ </div>+</div>diff --git a/templates/components/detail/desktop-right-panel.html b/templates/components/detail/desktop-right-panel.htmlindex 9bd4d130..f319e463 100644--- a/templates/components/detail/desktop-right-panel.html+++ b/templates/components/detail/desktop-right-panel.html@@ -1,230 +1,7 @@-<!-- Desktop Right Panel (Summary/Notes/Chat) -->+<!-- Desktop Right Panel (Summary/Notes/Chat) — audio player extracted+ to a persistent bottom bar (desktop-bottom-player.html) so it+ spans the full content width and stays anchored at the bottom. --><div id="rightMainColumn" class="flex flex-col overflow-hidden" :style="{width: rightColumnWidth + '%'}">- <!-- Audio Player. Lives flush on the rail surface (no nested card- chrome). A small uppercase AUDIO label + the progress bar +- controls. Separated from the tab strip below by a hairline. -->- <div class="px-4 pt-3 pb-3 border-b border-[var(--border-primary)] flex-shrink-0">- <!-- Show message if audio has been deleted -->- <div v-if="selectedRecording.audio_deleted_at"- class="text-[var(--text-muted)] text-sm flex items-center gap-2">- <i class="fas fa-info-circle"></i>- <span v-text="t('help.audioDeletedMessage')"></span>- </div>- <!-- Show message for incognito recordings (no audio stored) -->- <div v-else-if="selectedRecording.incognito"- class="text-[var(--text-muted)] text-sm flex items-center gap-2 py-2">- <i class="fas fa-user-secret"></i>- <span v-text="t('incognito.audioNotStored')"></span>- </div>- <!-- Audio Player (flush, no card wrapper) -->- <div v-else class="overflow-hidden">- <!-- Video/Audio element wrapped in Teleport for fullscreen -->- <Teleport to="body" :disabled="!videoFullscreen">- <div :class="videoFullscreen ? 'video-fullscreen-overlay' : ''"- @mousemove="videoFullscreen && handleFullscreenMouseMove()"- @click.self="videoFullscreen && toggleAudioPlayback()">-- <component :is="selectedRecording.mime_type && selectedRecording.mime_type.startsWith('video/') ? 'video' : 'audio'"- ref="audioPlayerElement"- :src="'/audio/' + selectedRecording.id"- :volume="playerVolume"- @play="handleAudioPlayPause"- @pause="handleAudioPlayPause"- @timeupdate="handleCustomAudioTimeUpdate"- @loadedmetadata="handleAudioLoadedMetadata"- @durationchange="handleAudioDurationChange"- @ended="handleAudioEnded"- @waiting="handleAudioWaiting"- @canplay="handleAudioCanPlay"- @click="selectedRecording.mime_type && selectedRecording.mime_type.startsWith('video/') && toggleAudioPlayback()"- @dblclick="selectedRecording.mime_type && selectedRecording.mime_type.startsWith('video/') && !videoFullscreen && enterVideoFullscreen()"- :class="selectedRecording.mime_type && selectedRecording.mime_type.startsWith('video/')- ? (videoFullscreen ? 'video-fullscreen-video' : (videoCollapsed ? 'hidden' : 'w-full rounded-lg mb-3 cursor-pointer'))- : 'hidden'">- </component>-- <!-- Fullscreen Subtitle Overlay -->- <div v-if="videoFullscreen && currentSubtitle"- class="video-fullscreen-subtitle"- :class="{ 'subtitle-shifted': fullscreenControlsVisible }">- <span v-if="currentSubtitle.speaker"- class="video-fullscreen-subtitle-speaker"- :style="{ color: 'var(--' + currentSubtitle.color + ')' }">${ currentSubtitle.speaker }:</span>- <span>${ currentSubtitle.text }</span>- </div>-- <!-- Fullscreen Control Bar -->- <div v-if="videoFullscreen"- class="video-fullscreen-controls"- :class="{ visible: fullscreenControlsVisible }"- @mousemove.stop="handleFullscreenMouseMove()">-- <!-- Progress Bar -->- <div class="px-4 mb-2">- <div class="w-full h-5 rounded-full cursor-pointer relative group flex items-center"- @mousedown="startProgressDrag"- @touchstart.prevent="startProgressDrag">- <div class="progress-track w-full h-1 rounded-full relative bg-white/30">- <div class="h-full bg-white rounded-full pointer-events-none"- :style="{ width: audioProgressPercent + '%' }"></div>- </div>- <div class="absolute top-1/2 w-3 h-3 bg-white rounded-full shadow-md transition-transform group-hover:scale-125 pointer-events-none -translate-y-1/2"- :style="{ left: 'clamp(0px, calc(' + audioProgressPercent + '% - 6px), calc(100% - 12px))' }"></div>- </div>- </div>-- <!-- Controls Row -->- <div class="flex items-center gap-3 px-4 pb-4">- <!-- Play/Pause -->- <button @click.stop="toggleAudioPlayback"- class="w-10 h-10 flex items-center justify-center rounded-full text-white hover:bg-white/20 transition-all">- <i :class="audioIsPlaying ? 'fas fa-pause' : 'fas fa-play'" class="text-lg" :style="!audioIsPlaying ? 'margin-left: 2px' : ''"></i>- </button>-- <!-- Volume -->- <div class="flex items-center gap-2">- <button @click.stop="toggleAudioMute"- class="w-8 h-8 flex items-center justify-center rounded-full text-white hover:bg-white/20 transition-all">- <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>- <input type="range" min="0" max="1" step="0.05"- :value="audioIsMuted ? 0 : playerVolume"- @input="(e) => setAudioVolume(parseFloat(e.target.value))"- class="fullscreen-volume-slider w-20">- </div>-- <!-- Time -->- <div class="flex items-baseline gap-1 text-white">- <span class="text-sm font-mono">${ formatAudioTime(displayCurrentTime) }</span>- <span class="text-xs opacity-60">/</span>- <span class="text-xs opacity-60 font-mono">${ formatAudioTime(audioDuration) }</span>- </div>-- <div class="flex-1"></div>-- <!-- Speed -->- <button @click.stop="cyclePlaybackRate"- class="px-2 h-8 flex items-center justify-center rounded-lg text-white hover:bg-white/20 transition-all"- title="Playback speed">- <span class="text-xs font-semibold font-mono">${ formatPlaybackRate(playbackRate) }</span>- </button>-- <!-- Exit Fullscreen -->- <button @click.stop="exitVideoFullscreen"- class="w-8 h-8 flex items-center justify-center rounded-full text-white hover:bg-white/20 transition-all"- :title="t('tooltips.exitFullscreen')">- <i class="fas fa-compress text-sm"></i>- </button>- </div>- </div>- </div>- </Teleport>-- <!-- Normal Controls (hidden when fullscreen) -->- <div v-show="!videoFullscreen">- <!-- Progress Bar (now on top, full width, draggable) -->- <div class="w-full h-4 rounded-full cursor-pointer relative mb-3 group flex items-center"- @mousedown="startProgressDrag">- <!-- Track background -->- <div class="progress-track w-full h-2 rounded-full relative bg-[var(--border-accent)] opacity-40">- <!-- Progress fill -->- <div class="h-full bg-[var(--text-accent)] rounded-full pointer-events-none opacity-100"- :style="{ width: audioProgressPercent + '%' }"></div>- </div>- <!-- Progress dot - stays within track bounds -->- <div class="absolute top-1/2 w-4 h-4 bg-[var(--text-accent)] rounded-full shadow-md transition-transform group-hover:scale-110 pointer-events-none -translate-y-1/2"- :style="{ left: 'clamp(0px, calc(' + audioProgressPercent + '% - 8px), calc(100% - 16px))' }"- style="box-shadow: 0 2px 6px rgba(0,0,0,0.3);"></div>- </div>-- <!-- Controls Row -->- <div class="flex items-center gap-2 min-w-0">- <!-- Play/Pause Button -->- <button @click="toggleAudioPlayback"- class="w-10 h-10 flex items-center justify-center rounded-full player-play-button transition-all duration-200 flex-shrink-0 shadow-md hover:shadow-lg hover:scale-105"- :title="audioIsPlaying ? t('tooltips.pause') : t('tooltips.play')">- <i :class="audioIsPlaying ? 'fas fa-pause' : 'fas fa-play'" class="text-base" :style="!audioIsPlaying ? 'margin-left: 2px' : ''"></i>- </button>-- <!-- Time Display -->- <div class="flex items-baseline gap-1 flex-shrink-0 min-w-0">- <span class="text-sm font-semibold font-mono" :class="isDraggingProgress ? 'text-[var(--text-accent)]' : 'text-[var(--text-primary)]'">${ formatAudioTime(displayCurrentTime) }</span>- <span class="text-xs text-[var(--text-muted)]">/</span>- <span class="text-xs text-[var(--text-muted)] font-mono">${ formatAudioTime(audioDuration) }</span>- </div>-- <!-- Playback Speed Control -->- <div class="relative flex-shrink-0">- <button ref="speedButtonDesktop"- @click="showSpeedMenu = !showSpeedMenu; $nextTick(() => updateSpeedMenuPosition($refs.speedButtonDesktop))"- 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"- :title="t('tooltips.playbackSpeed') || 'Playback speed'">- <span class="text-xs font-semibold font-mono">${ formatPlaybackRate(playbackRate) }</span>- </button>- <!-- Dropdown menu (teleported to body, fixed positioning) -->- <Teleport to="body">- <div v-if="showSpeedMenu" @click.stop- data-speed-dropdown- class="fixed bg-[var(--bg-tertiary)] border border-[var(--border-accent)] rounded-md shadow-xl z-[9999] speed-dropdown overflow-y-auto backdrop-blur-sm"- :style="speedMenuPosition">- <div class="py-0.5">- <button v-for="speed in playbackSpeeds" :key="speed"- @mousedown.prevent="setPlaybackRate(speed); showSpeedMenu = false"- class="w-full px-2 py-0.5 text-[11px] font-mono text-left hover:bg-[var(--bg-accent-light)] transition-colors"- :class="speed === playbackRate ? 'text-[var(--text-accent)] font-semibold bg-[var(--bg-accent-light)]' : 'text-[var(--text-primary)]'">- ${ speed }x- </button>- </div>- </div>- </Teleport>- </div>-- <!-- Spacer -->- <div class="flex-1 min-w-0"></div>-- <!-- Volume Control - hidden on very narrow screens -->- <div class="hidden sm:flex items-center gap-1 flex-shrink-0">- <button @click="toggleAudioMute"- class="w-8 h-8 flex items-center justify-center rounded-lg hover:bg-[var(--bg-primary)] hover:opacity-80 transition-all"- :class="audioIsMuted || playerVolume === 0 ? 'text-[var(--text-muted)]' : 'text-[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>- <input type="range" min="0" max="1" step="0.05"- :value="audioIsMuted ? 0 : playerVolume"- @input="(e) => setAudioVolume(parseFloat(e.target.value))"- class="volume-slider w-16">- </div>-- <!-- 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"- :title="t('buttons.downloadAudio') || 'Download audio'">- <i class="fas fa-download text-sm"></i>- </a>-- <!-- 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"- :title="t('tooltips.fullscreenVideo')">- <i class="fas fa-expand text-sm"></i>- </button>-- <!-- 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)]'"- :title="videoCollapsed ? t('tooltips.showVideo') : t('tooltips.hideVideo')">- <i :class="videoCollapsed ? 'fas fa-eye-slash' : 'fas fa-eye'" class="text-sm"></i>- </button>- </div>- </div>- </div>- </div><!-- Right-rail tab strip + per-tab action toolbar (design system v1).One row carries tab navigation on the left and per-tab actions ondiff --git a/tests/test_video_retention.py b/tests/test_video_retention.pyindex dc44b28e..f672c05c 100644--- a/tests/test_video_retention.py+++ b/tests/test_video_retention.py@@ -273,7 +273,11 @@ class TestFrontendTemplates(unittest.TestCase):"""Test that frontend templates correctly switch between video and audio."""TEMPLATE_FILES = [- 'templates/components/detail/desktop-right-panel.html',+ # The recording-detail desktop audio player now lives in+ # desktop-bottom-player.html (persistent bottom bar), pulled+ # out of desktop-right-panel.html during the UX redesign so it+ # spans the full content width below the columns.+ 'templates/components/detail/desktop-bottom-player.html','templates/components/detail/audio-player.html','templates/modals/speaker-modal.html','templates/share.html',@@ -301,23 +305,34 @@ class TestFrontendTemplates(unittest.TestCase):# Each template should have component :is but no bare <audio for the main playerself.assertGreater(component_count, 0, f"No <component :is> in {tmpl}")- # Desktop right panel and audio player should have 0 bare audio tags- if 'desktop-right-panel' in tmpl or 'audio-player' in tmpl:+ # Desktop bottom player and the mobile audio-player both+ # should have 0 bare audio tags (the dynamic component+ # carries video/audio switching).+ if 'desktop-bottom-player' in tmpl or 'audio-player' in tmpl:self.assertEqual(audio_count, 0, f"Unexpected bare <audio> in {tmpl}")def test_video_element_gets_visible_styling(self):- """When mime_type is video/, the element should be visible (not hidden)."""+ """When mime_type is video/, the element should be visible (not hidden).++ desktop-bottom-player.html is a single-row controls bar with no+ room for inline video; video playback there is fullscreen-only,+ so the inline-styling assertion doesn't apply to it.+ """for tmpl in self.TEMPLATE_FILES:content = self._read_template(tmpl)- # Should have conditional class that shows video and hides audio- self.assertIn("'w-full rounded-lg", content, f"Missing video styling in {tmpl}")+ # Should always have a hidden fallback for the audio caseself.assertIn("'hidden'", content, f"Missing hidden fallback for audio in {tmpl}")+ # Inline video styling only applies to templates that render+ # video inline (not the bottom-bar player).+ if 'desktop-bottom-player' not in tmpl:+ self.assertIn("'w-full rounded-lg", content, f"Missing video styling in {tmpl}")def test_template_div_balance(self):"""Verify player-specific templates have balanced div tags."""# Only check templates we fully control (not share.html which has pre-existing imbalance)balanced_templates = ['templates/components/detail/desktop-right-panel.html',+ 'templates/components/detail/desktop-bottom-player.html','templates/components/detail/audio-player.html','templates/modals/speaker-modal.html',]