Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Mobile detail: contextual icons move to the chevron row, panels go edge-to-edge, follow-player toggle stops looking bigger than its peers — three coupled changes that together fix the 'box within a box' and 'icons take a whole extra row' problems from the screenshot; (a) detail-view.html: the outer wrapper around the mobile panels dropped its p-4, so the per-tab panels now own their own edges instead of sitting inside a 16 px gutter inside another 16 px gutter; (b) mobile-header.html: a new contextual toolbar slot appears IN the chevron row, populated based on mobileTab — summary / notes show copy / download / edit (hidden during editing), transcript shows follow-player + view-mode + copy / download / edit, events shows calendar-export, chat shows clear-chat-when-not-empty; saves a row of vertical space across every panel; (c) each panel dropped its own top toolbar div (mobile-summary-panel, mobile-notes-panel, mobile-transcript-panel, mobile-chat-panel, mobile-events-panel) and tightened reading-mode padding to px-3 py-3 (was px-3 pb-3 with an additional outer p-4); editing-mode shells now use just pt-1 with no horizontal padding so the editor toolbar goes screen-edge to screen-edge for the largest possible typing area, with the sticky Cancel/Save footer providing its own px-3 py-2 for the buttons; chat panel's floating absolute clear button removed (it was floating over message content) since the same action is now in the header; (d) follow-player toggle (from the user's follow-up): when ON, only the icon COLOUR changes to text-accent — the previous bg-accent pill made the button visually heavier than its peers in the same toolbar; button dimensions stay identical to copy / download / edit regardless of active state, fixing the 'inconsistent box sizes' issue from the follow-up message
Murtaza Nasirebd8127dda3f
diff --git a/templates/components/detail-view.html b/templates/components/detail-view.htmlindex 72145b6b..fd341b40 100644--- a/templates/components/detail-view.html+++ b/templates/components/detail-view.html@@ -33,8 +33,11 @@<div v-if="isMobile" class="flex flex-col h-full overflow-hidden">{% include 'components/detail/mobile-header.html' %}- <!-- Mobile Tab Content (single panel) -->- <div class="flex-1 overflow-y-auto p-4">+ <!-- Mobile Tab Content. No outer padding — each panel owns+ its own edges so the content goes full-width to the+ screen edges instead of sitting inside a 16 px gutter+ that read as a "box within a box". -->+ <div class="flex-1 overflow-y-auto">{% include 'components/detail/mobile-transcript-panel.html' %}{% include 'components/detail/mobile-summary-panel.html' %}{% include 'components/detail/mobile-notes-panel.html' %}diff --git a/templates/components/detail/mobile-chat-panel.html b/templates/components/detail/mobile-chat-panel.htmlindex eb6a3edb..74206e0e 100644--- a/templates/components/detail/mobile-chat-panel.html+++ b/templates/components/detail/mobile-chat-panel.html@@ -1,14 +1,7 @@-<!-- Mobile Chat Panel (design system v1) -->-<div v-if="mobileTab === 'chat'" class="h-full flex flex-col overflow-hidden relative">- <!-- Clear button -->- <button v-if="chatMessages.length > 0"- @click="clearChat"- class="btn btn--icon btn--sm absolute"- style="top: var(--sp-2); right: var(--sp-2); z-index: 20; color: var(--text-muted);"- title="Clear chat">- <i class="fas fa-times"></i>- </button>-+<!-- Mobile Chat Panel. Clear button moved into the mobile-header's+ contextual toolbar so this panel no longer overlays its own+ floating × button on top of message content. -->+<div v-if="mobileTab === 'chat'" class="h-full flex flex-col overflow-hidden"><div ref="chatMessagesRef" class="flex-1 overflow-y-auto px-3 py-3 space-y-4"><div v-if="chatMessages.length === 0" class="empty"><div class="empty__icon"><i class="fas fa-robot"></i></div>diff --git a/templates/components/detail/mobile-events-panel.html b/templates/components/detail/mobile-events-panel.htmlindex 2729a13e..eebaaeae 100644--- a/templates/components/detail/mobile-events-panel.html+++ b/templates/components/detail/mobile-events-panel.html@@ -1,11 +1,8 @@-<!-- Mobile Events Panel (design system v1) -->+<!-- Mobile Events Panel. Calendar-export button moved into the+ mobile-header's contextual toolbar so this panel now drops+ straight into its event list. --><div v-if="mobileTab === 'events' && selectedRecording.events && selectedRecording.events.length > 0" class="h-full flex flex-col">- <div class="flex items-center justify-end gap-1 flex-shrink-0 px-3 py-2">- <button @click="downloadICS" class="btn btn--icon" :title="t('buttons.exportCalendar')">- <i class="fas fa-calendar-plus"></i>- </button>- </div>- <div class="flex-grow overflow-y-auto px-3 pb-3 space-y-3">+ <div class="flex-grow overflow-y-auto px-3 py-3 space-y-3"><div v-for="event in selectedRecording.events" :key="event.id"class="bg-[var(--bg-tertiary)] rounded-md p-3 border border-[var(--border-primary)]"><div class="flex justify-between items-start mb-2">diff --git a/templates/components/detail/mobile-header.html b/templates/components/detail/mobile-header.htmlindex 9cc36640..1b738d4d 100644--- a/templates/components/detail/mobile-header.html+++ b/templates/components/detail/mobile-header.html@@ -60,11 +60,67 @@</div></div>- <button @click.stop="isMetadataExpanded = !isMetadataExpanded"- class="btn btn--icon btn--sm flex-shrink-0"- :title="isMetadataExpanded ? 'Hide details' : 'Show details'">- <i :class="['fas fa-chevron-down text-xs transition-transform', { 'rotate-180': isMetadataExpanded }]"></i>- </button>+ <!-- Contextual toolbar — tab-specific actions move INTO the+ chevron row instead of taking a whole separate row in+ each panel. Saves a row of vertical space and gives the+ user the actions next to where their eye is anyway.+ Hidden when the active tab is in an editing mode since+ the editor's own Cancel/Save footer takes over. -->+ <div class="flex items-center gap-0.5 flex-shrink-0">+ <template v-if="mobileTab === 'summary' && !editingSummary">+ <button v-if="selectedRecording.summary" @click.stop="copySummary" class="btn btn--icon btn--sm" :title="t('buttons.copySummary')"><i class="fas fa-copy"></i></button>+ <button v-if="selectedRecording.summary" @click.stop="downloadSummary" class="btn btn--icon btn--sm" :title="t('buttons.downloadAsWord')"><i class="fas fa-download"></i></button>+ <button @click.stop="toggleEditSummary" class="btn btn--icon btn--sm" :title="t('buttons.editSummary')"><i class="fas fa-pen"></i></button>+ </template>+ <template v-else-if="mobileTab === 'notes' && !editingNotes">+ <button v-if="selectedRecording.notes" @click.stop="copyNotes" class="btn btn--icon btn--sm" :title="t('buttons.copyNotes')"><i class="fas fa-copy"></i></button>+ <button v-if="selectedRecording.notes" @click.stop="downloadNotes" class="btn btn--icon btn--sm" :title="t('buttons.downloadAsWord')"><i class="fas fa-download"></i></button>+ <button @click.stop="toggleEditNotes" class="btn btn--icon btn--sm" :title="t('buttons.editNotes')"><i class="fas fa-pen"></i></button>+ </template>+ <template v-else-if="mobileTab === 'transcript'">+ <!-- Follow-player toggle: when ON, only the icon+ COLOUR changes (text-accent), no background+ pill. Previously it carried bg-accent which+ made the button visually heavier than its+ peers in the same toolbar — caused the+ "inconsistent box sizes" issue from the+ follow-up message. Stays identical in+ dimensions to copy / download / edit+ regardless of state. -->+ <button v-if="processedTranscription.isJson && processedTranscription.hasDialogue"+ @click.stop="toggleFollowPlayerMode"+ class="btn btn--icon btn--sm"+ :style="followPlayerMode ? 'color: var(--text-accent);' : ''"+ :title="followPlayerMode ? t('tooltips.followPlayerEnabled') : t('tooltips.followPlayerDisabled')">+ <i class="fas fa-arrows-alt-v"></i>+ </button>+ <button v-if="processedTranscription.hasDialogue"+ @click.stop="toggleTranscriptionViewMode"+ class="btn btn--icon btn--sm"+ :title="transcriptionViewMode === 'simple' ? (t('tooltips.bubbleView') || 'Bubble view') : (t('tooltips.simpleView') || 'Simple view')">+ <i :class="transcriptionViewMode === 'simple' ? 'fas fa-comments' : 'fas fa-list'"></i>+ </button>+ <button @click.stop="copyTranscription" class="btn btn--icon btn--sm" :title="t('tooltips.copyTranscript')"><i class="fas fa-copy"></i></button>+ <button v-if="selectedRecording.transcription" @click.stop="downloadTranscript" class="btn btn--icon btn--sm" :title="t('tooltips.downloadTranscriptWithTemplate')"><i class="fas fa-download"></i></button>+ <button v-if="selectedRecording.transcription" @click.stop="openTranscriptionEditor" class="btn btn--icon btn--sm" :title="t('tooltips.editTranscript')"><i class="fas fa-edit"></i></button>+ </template>+ <template v-else-if="mobileTab === 'events' && selectedRecording.events && selectedRecording.events.length > 0">+ <button @click.stop="downloadICS" class="btn btn--icon btn--sm" :title="t('buttons.exportCalendar')">+ <i class="fas fa-calendar-plus"></i>+ </button>+ </template>+ <template v-else-if="mobileTab === 'chat' && chatMessages && chatMessages.length > 0">+ <button @click.stop="clearChat" class="btn btn--icon btn--sm" title="Clear chat">+ <i class="fas fa-times"></i>+ </button>+ </template>++ <button @click.stop="isMetadataExpanded = !isMetadataExpanded"+ class="btn btn--icon btn--sm"+ :title="isMetadataExpanded ? 'Hide details' : 'Show details'">+ <i :class="['fas fa-chevron-down text-xs transition-transform', { 'rotate-180': isMetadataExpanded }]"></i>+ </button>+ </div></div><!-- Expanded panel -->diff --git a/templates/components/detail/mobile-notes-panel.html b/templates/components/detail/mobile-notes-panel.htmlindex f0487eaf..34953a50 100644--- a/templates/components/detail/mobile-notes-panel.html+++ b/templates/components/detail/mobile-notes-panel.html@@ -4,22 +4,16 @@so the edit-pen active-state inconsistency disappears, and theeditor takes the full panel height with thin outer padding plus asticky Cancel/Save footer. -->+<!-- Per-tab contextual toolbar lives in mobile-header.html. --><div v-if="mobileTab === 'notes'" class="h-full flex flex-col">- <!-- Reading-mode toolbar — hidden during editing. -->- <div v-if="!editingNotes"- class="flex items-center justify-end gap-1 flex-shrink-0 px-3 py-2">- <button v-if="selectedRecording.notes" @click="copyNotes" class="btn btn--icon btn--sm" :title="t('buttons.copyNotes')"><i class="fas fa-copy"></i></button>- <button v-if="selectedRecording.notes" @click="downloadNotes" class="btn btn--icon btn--sm" :title="t('buttons.downloadAsWord')"><i class="fas fa-download"></i></button>- <button @click="toggleEditNotes" class="btn btn--icon btn--sm" :title="t('buttons.editNotes')"><i class="fas fa-pen"></i></button>- </div>- <!-- Editing-mode shell. -->- <div v-if="editingNotes" class="flex-grow flex flex-col min-h-0 px-2 pt-2">+ <!-- Editing-mode shell — editor goes edge-to-edge. -->+ <div v-if="editingNotes" class="flex-grow flex flex-col min-h-0 pt-1"><div class="markdown-editor-container flex-1 min-h-0 flex flex-col"><textarea ref="notesMarkdownEditor"v-model="selectedRecording.notes"></textarea></div>- <div class="flex justify-end gap-2 flex-shrink-0 px-1 py-2 border-t"+ <div class="flex justify-end gap-2 flex-shrink-0 px-3 py-2 border-t"style="border-top-color: var(--border-secondary);"><button @click="cancelEditNotes" class="btn btn--sm btn--ghost" v-text="t('common.cancel')"></button><button @click="saveEditNotes" class="btn btn--sm btn--primary" v-text="t('common.save')"></button>@@ -27,7 +21,7 @@</div><!-- Reading-mode body. -->- <div v-else class="flex-grow overflow-y-auto px-3 pb-3" @click="clickToEditNotes">+ <div v-else class="flex-grow overflow-y-auto px-3 py-3" @click="clickToEditNotes"><div v-if="!selectedRecording.notes" class="empty"><div class="empty__icon"><i class="fas fa-sticky-note"></i></div><div class="empty__title" v-text="t('help.clickToAddNotes')"></div>diff --git a/templates/components/detail/mobile-summary-panel.html b/templates/components/detail/mobile-summary-panel.htmlindex 9324a58a..3aae84b5 100644--- a/templates/components/detail/mobile-summary-panel.html+++ b/templates/components/detail/mobile-summary-panel.html@@ -9,33 +9,29 @@(2) EDITING: editor fills the panel edge-to-edge with minimalouter padding so the typing area is as large as possible;Cancel and Save live in a sticky footer below the editor. -->+<!-- Per-tab contextual toolbar moved into mobile-header.html so it+ shares the chevron row instead of taking a separate row here. --><div v-if="mobileTab === 'summary'" class="h-full flex flex-col">- <!-- Reading-mode toolbar — hidden during editing. -->- <div v-if="!editingSummary"- class="flex items-center justify-end gap-1 flex-shrink-0 px-3 py-2">- <button v-if="selectedRecording.summary" @click="copySummary" class="btn btn--icon btn--sm" :title="t('buttons.copySummary')"><i class="fas fa-copy"></i></button>- <button v-if="selectedRecording.summary" @click="downloadSummary" class="btn btn--icon btn--sm" :title="t('buttons.downloadAsWord')"><i class="fas fa-download"></i></button>- <button @click="toggleEditSummary" class="btn btn--icon btn--sm" :title="t('buttons.editSummary')"><i class="fas fa-pen"></i></button>- </div>- <!-- Editing-mode shell — editor takes the full available height- with a thin 8 px outer padding (was 12 px on every side); the- sticky footer holds Cancel + Save so they don't scroll out of- reach for long summaries. -->- <div v-if="editingSummary" class="flex-grow flex flex-col min-h-0 px-2 pt-2">+ <!-- Editing-mode shell — editor goes edge-to-edge (no horizontal+ padding) since the surrounding mobile content area no longer+ wraps it in p-4. Tiny pt-1 keeps the editor toolbar from+ touching the header's bottom border. -->+ <div v-if="editingSummary" class="flex-grow flex flex-col min-h-0 pt-1"><div class="markdown-editor-container flex-1 min-h-0 flex flex-col"><textarea ref="summaryMarkdownEditor"v-model="selectedRecording.summary"></textarea></div>- <div class="flex justify-end gap-2 flex-shrink-0 px-1 py-2 border-t"+ <div class="flex justify-end gap-2 flex-shrink-0 px-3 py-2 border-t"style="border-top-color: var(--border-secondary);"><button @click="cancelEditSummary" class="btn btn--sm btn--ghost" v-text="t('common.cancel')"></button><button @click="saveEditSummary" class="btn btn--sm btn--primary" v-text="t('common.save')"></button></div></div>- <!-- Reading-mode body. -->- <div v-else class="flex-grow overflow-y-auto px-3 pb-3">+ <!-- Reading-mode body — px-3 only for prose readability against+ the screen edge; py-3 keeps the prose off the toolbar above. -->+ <div v-else class="flex-grow overflow-y-auto px-3 py-3"><div><div v-if="selectedRecording.status === 'SUMMARIZING'" class="empty"><div class="spinner spinner--lg"></div>diff --git a/templates/components/detail/mobile-transcript-panel.html b/templates/components/detail/mobile-transcript-panel.htmlindex de266ff7..f64b6cdc 100644--- a/templates/components/detail/mobile-transcript-panel.html+++ b/templates/components/detail/mobile-transcript-panel.html@@ -1,50 +1,8 @@-<!-- 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. -->+<!-- Mobile Transcript Panel. The toolbar (follow-player, view-mode,+ copy / download / edit) now lives in the chevron row of+ mobile-header.html instead of taking a whole separate row here. --><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="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">+ <div class="flex-grow overflow-y-auto px-3 py-3 relative"><!-- Floating Processing Indicator (Mobile) --><div v-if="selectedRecording.status === 'PROCESSING'":class="['processing-indicator-floating', processingIndicatorMinimized ? 'minimized' : '']">