Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Mobile detail polish: editor gets real room, action toolbars get cohesive grouping, edit-pen active-state inconsistency disappears — (a) mobile-summary-panel and mobile-notes-panel: the reading-mode toolbar (copy / download / edit) now hides entirely when the user is editing so the 'edit pen visually highlights when active' inconsistency from the screenshot is gone — in editing mode there's no panel toolbar at all, only the editor's own toolbar plus a NEW sticky Cancel/Save footer with a hairline border-top; toolbar buttons switched to .btn--icon.btn--sm so they match the sizing of the rest of the mobile icon buttons; editor shell padding tightened from px-3 pb-3 (12 px each side) down to px-2 pt-2 (8 px) so the typing surface is meaningfully larger; in notes panel the empty-state click-to-edit was preserved with its handler intact; (b) mobile-header.html re-grouped: the row of 9 floating icon buttons that read as 'slapdash' is now wrapped in a single bg-tertiary container so it reads as ONE bordered control bar; everyday actions (folder / inbox / star / tags) sit on the left, then a hairline divider, then state-changing actions (reprocess / regenerate / reset / speakers / share), then a flex-1 spacer that pushes the destructive delete button to the right edge where it's harder to mis-tap; the metadata strip (date / file size / etc) above the toolbar is now a row of bg-tertiary chips with consistent height/padding so it reads as a tidy row of facts instead of a comma-separated string; participants line gets a small icon and a status badge inline so the always-visible header strip carries the right amount of information at first glance
Murtaza Nasir0c8c21709a8e
diff --git a/templates/components/detail/mobile-header.html b/templates/components/detail/mobile-header.htmlindex 0b7dee6c..9cc36640 100644--- a/templates/components/detail/mobile-header.html+++ b/templates/components/detail/mobile-header.html@@ -1,67 +1,65 @@<!-- Mobile Header for Detail View.- The global app header (templates/components/header.html) already- shows the recording title with the edit + regenerate buttons on- mobile, so the previous duplicate title row here read as a- doubled title bar. This component now only owns what the global- header doesn't: the participants / pills meta strip, the folder- / tag / share badges, and the expandable action toolbar with- extra metadata. -->+ The global app header already shows the recording title with the+ edit + regenerate buttons on mobile, so this component owns only+ the secondary information layer:+ (a) Always-visible meta strip — participants + status + folder+ / tag / share pills, plus a single chevron to expand.+ (b) Expanded panel — secondary metadata (date / file size /+ etc.) grouped as a clean pill row, and an action toolbar+ sitting on its own bg-tertiary background so the cluster of+ icons reads as ONE bordered control bar instead of nine+ loose icons floating against the page background. --><div class="border-b flex-shrink-0"style="background: var(--bg-secondary); border-bottom-color: var(--border-primary);">- <!-- Always-visible meta strip — participants on the left, a single- expand chevron on the right that opens the action toolbar +- secondary metadata (meeting date, duration, model, etc.). -->+ <!-- Always-visible meta strip --><div @click="isMetadataExpanded = !isMetadataExpanded"- class="cursor-pointer px-4 py-2 flex items-center justify-between gap-3">+ class="cursor-pointer px-4 py-2 flex items-center gap-3"><div class="flex-1 min-w-0">- <!-- Participants line -->- <p class="t-meta truncate">- <i class="fas fa-users mr-1.5" style="color: var(--text-muted); font-size: 10px;"></i>- <span v-text="selectedRecording.participants || t('help.noParticipants')"></span>- <!-- Status badge inline when not completed (avoids- wrapping issues with the chevron). -->+ <!-- Participants + status, single line, truncates -->+ <div class="flex items-center gap-2 min-w-0">+ <i class="fas fa-users flex-shrink-0" style="color: var(--text-muted); font-size: 11px;"></i>+ <span class="text-sm truncate" style="color: var(--text-secondary);"+ v-text="selectedRecording.participants || t('help.noParticipants')"></span><span v-if="selectedRecording.status !== 'COMPLETED'":class="getStatusClass(selectedRecording.status)"- class="inline-flex items-center px-1.5 py-0.5 text-[10px] font-medium rounded-full whitespace-nowrap ml-2">+ class="inline-flex items-center px-1.5 py-0.5 text-[10px] font-medium rounded-full whitespace-nowrap flex-shrink-0">${ formatStatus(selectedRecording.status) }</span>- </p>+ </div>- <!-- Folder / tag / share pills row, compact -->+ <!-- Folder / tag / share pill row, only when present --><div v-if="(foldersEnabled && selectedRecording.folder_id) || getRecordingTags(selectedRecording).length > 0 || selectedRecording.is_shared || selectedRecording.shared_with_count > 0 || selectedRecording.public_share_count > 0"class="flex flex-wrap gap-1 mt-1.5"><span v-if="foldersEnabled && selectedRecording.folder_id && !selectedRecording.incognito"- class="inline-flex items-center px-1.5 py-0.5 rounded-full text-[10px] font-medium"+ class="inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-medium":style="{ backgroundColor: getFolderColor(selectedRecording.folder_id), color: getContrastTextColor(getFolderColor(selectedRecording.folder_id)) }"><i class="fas fa-folder mr-1"></i><span v-text="getFolderName(selectedRecording.folder_id)"></span></span><button v-for="tag in getRecordingTags(selectedRecording)" :key="tag.id"@click.stop="filterByTag(tag)"- class="inline-flex items-center px-1.5 py-0.5 rounded-full text-[10px] font-medium hover:opacity-80 transition-all"+ class="inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-medium hover:opacity-80 transition-all":style="{ backgroundColor: tag.color, color: getContrastTextColor(tag.color) }":title="tag.group_id ? ('Group: ' + tag.group_name) : tag.name"><i v-if="tag.group_id" class="fas fa-users mr-1"></i><i v-else class="fas fa-tag mr-1"></i><span v-text="tag.name"></span></button>- <span v-if="selectedRecording.is_shared" class="inline-flex items-center px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-purple-500 text-white">+ <span v-if="selectedRecording.is_shared" class="inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-medium bg-purple-500 text-white"><i class="fas fa-arrow-down mr-1"></i>Shared</span>- <span v-if="!selectedRecording.is_shared && selectedRecording.shared_with_count > 0" class="inline-flex items-center px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-indigo-500 text-white">+ <span v-if="!selectedRecording.is_shared && selectedRecording.shared_with_count > 0" class="inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-medium bg-indigo-500 text-white"><i class="fas fa-arrow-up mr-1"></i>${ selectedRecording.shared_with_count }</span>- <span v-if="!selectedRecording.is_shared && selectedRecording.public_share_count > 0" class="inline-flex items-center px-1.5 py-0.5 rounded-full text-[10px] font-medium bg-teal-500 text-white">+ <span v-if="!selectedRecording.is_shared && selectedRecording.public_share_count > 0" class="inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-medium bg-teal-500 text-white"><i class="fas fa-globe mr-1"></i>${ selectedRecording.public_share_count }</span></div></div>- <!-- Expand affordance — using the .btn--icon primitive so it- matches the rest of the design system. --><button @click.stop="isMetadataExpanded = !isMetadataExpanded"class="btn btn--icon btn--sm flex-shrink-0":title="isMetadataExpanded ? 'Hide details' : 'Show details'">@@ -69,109 +67,122 @@</button></div>- <!-- Expanded panel: secondary metadata + horizontal action- toolbar. Only the items the global header doesn't already- expose. -->- <div v-if="isMetadataExpanded"- class="px-4 pb-3 pt-1 space-y-3 border-t"- style="border-top-color: var(--border-secondary);">+ <!-- Expanded panel -->+ <div v-if="isMetadataExpanded" class="px-3 pb-3 space-y-2">- <!-- Secondary metadata row -->- <div class="flex flex-wrap items-center gap-x-3 gap-y-1.5 t-meta">+ <!-- Metadata: chip-styled so it reads as a tidy row of facts+ instead of a comma-separated string. Each chip is the+ same height/padding so the row has visual rhythm. -->+ <div class="flex flex-wrap gap-1.5"><button @click.stop="openMeetingDatePicker"- class="inline-flex items-center gap-1 hover:opacity-80 transition-opacity"- style="color: var(--text-muted);">- <i class="fas fa-calendar" style="color: var(--text-accent);"></i>+ class="inline-flex items-center gap-1.5 px-2 py-1 rounded-md text-[11px] hover:opacity-80 transition-opacity"+ style="background: var(--bg-tertiary); color: var(--text-secondary);">+ <i class="fas fa-calendar text-[10px]" style="color: var(--text-accent);"></i><span v-text="selectedRecording.meeting_date ? formatDisplayDate(selectedRecording.meeting_date) : 'No date set'"></span></button>- <span v-if="selectedRecording.is_shared" class="inline-flex items-center gap-1" style="color: var(--text-muted);">- <i class="fas fa-user" style="color: var(--text-accent);"></i>+ <span v-if="selectedRecording.is_shared"+ class="inline-flex items-center gap-1.5 px-2 py-1 rounded-md text-[11px]"+ style="background: var(--bg-tertiary); color: var(--text-secondary);">+ <i class="fas fa-user text-[10px]" style="color: var(--text-accent);"></i><span v-text="selectedRecording.owner_username || t('sharing.unknown')"></span></span><template v-if="activeRecordingMetadata" v-for="(item, index) in activeRecordingMetadata" :key="index">- <span v-if="!item.isTagItem" class="inline-flex items-center gap-1" style="color: var(--text-muted);">- <i :class="item.icon" style="color: var(--text-accent);"></i>+ <span v-if="!item.isTagItem"+ class="inline-flex items-center gap-1.5 px-2 py-1 rounded-md text-[11px]"+ style="background: var(--bg-tertiary); color: var(--text-secondary);">+ <i :class="[item.icon, 'text-[10px]']" style="color: var(--text-accent);"></i><span :title="item.fullText || item.text" v-text="item.text"></span></span></template><button v-if="selectedRecording.duplicate_info"@click.stop="openDuplicatesModal(selectedRecording.duplicate_info)"- class="inline-flex items-center gap-1 hover:opacity-80 transition-opacity"- style="color: var(--text-warn, #d97706);">- <i class="fas fa-copy"></i>+ class="inline-flex items-center gap-1.5 px-2 py-1 rounded-md text-[11px] hover:opacity-80 transition-opacity"+ style="background: rgba(217, 119, 6, 0.12); color: var(--text-warn, #d97706);">+ <i class="fas fa-copy text-[10px]"></i><span>${ selectedRecording.duplicate_info.total_copies } ${ t('upload.copies') || 'copies' }</span></button></div>- <!-- Action toolbar — uses .btn--icon primitives so it- matches desktop. Horizontally scrolls if it overflows. -->- <div class="flex items-center gap-1 overflow-x-auto -mx-1 px-1 pb-1">- <template v-if="!selectedRecording.incognito">- <!-- Folder Assignment (icon-only dropdown) -->- <div v-if="foldersEnabled && selectedRecording.can_edit !== false"- class="btn btn--icon btn--sm relative flex-shrink-0"- :title="selectedRecording.folder_id ? getFolderName(selectedRecording.folder_id) : 'Assign Folder'">- <select @change.stop="assignFolderToRecording(selectedRecording.id, $event.target.value || null)"- :value="selectedRecording.folder_id || ''"- class="absolute inset-0 w-full h-full opacity-0 cursor-pointer">- <option value="">No Folder</option>- <option v-for="folder in availableFolders" :key="folder.id" :value="folder.id">- ${ folder.name }- </option>- </select>- <i class="fas fa-folder"- :style="{ color: selectedRecording.folder_id ? getFolderColor(selectedRecording.folder_id) : '' }"></i>- </div>- <button @click.stop="toggleInbox(selectedRecording)"- class="btn btn--icon btn--sm flex-shrink-0"- :class="selectedRecording.is_inbox ? 'text-blue-500' : ''"- title="Inbox"><i class="fas fa-inbox"></i></button>- <button @click.stop="toggleHighlight(selectedRecording)"- class="btn btn--icon btn--sm flex-shrink-0"- :class="selectedRecording.is_highlighted ? 'text-yellow-500' : ''"- title="Highlight"><i class="fas fa-star"></i></button>- <button @click.stop="editRecordingTags(selectedRecording)"- class="btn btn--icon btn--sm flex-shrink-0"- title="Edit tags"><i class="fas fa-tags"></i></button>- <button @click.stop="confirmReprocess('transcription', selectedRecording)"- v-if="selectedRecording && selectedRecording.can_edit !== false && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED')"- class="btn btn--icon btn--sm flex-shrink-0"- title="Reprocess transcription"><i class="fas fa-redo-alt"></i></button>- <button @click.stop="confirmReprocess('summary', selectedRecording)"- v-if="selectedRecording && selectedRecording.can_edit !== false && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED')"- class="btn btn--icon btn--sm flex-shrink-0"- title="Regenerate summary"><i class="fas fa-sync-alt"></i></button>- <button @click.stop="confirmReset(selectedRecording)"- v-if="['PENDING', 'PROCESSING', 'SUMMARIZING', 'FAILED'].includes(selectedRecording.status)"- class="btn btn--icon btn--sm flex-shrink-0"- style="color: var(--text-warn, #d97706);"- title="Reset"><i class="fas fa-undo"></i></button>- <button @click.stop="openSpeakerModal"- v-if="processedTranscription.hasDialogue"- class="btn btn--icon btn--sm flex-shrink-0"- title="Identify speakers"><i class="fas fa-user-tag"></i></button>- <button v-if="!selectedRecording.is_shared || (selectedRecording.share_info && selectedRecording.share_info.can_reshare)"- @click.stop="openUnifiedShareModal(selectedRecording)"- class="btn btn--icon btn--sm flex-shrink-0"- title="Share"><i class="fas fa-share-alt"></i></button>- <button v-if="canDeleteRecordings && selectedRecording.can_delete !== false"- @click.stop="confirmDelete(selectedRecording)"- class="btn btn--icon btn--sm flex-shrink-0"- style="color: var(--text-danger);"- title="Delete"><i class="fas fa-trash"></i></button>- </template>+ <!-- Action toolbar — sits on its own bg-tertiary background+ so the cluster of icons reads as one bordered control bar+ instead of a row of free-floating icons. Horizontal scroll+ on overflow so adding more actions doesn't break layout. -->+ <div class="rounded-md overflow-hidden" style="background: var(--bg-tertiary);">+ <div class="flex items-center gap-0.5 overflow-x-auto px-1 py-1">+ <template v-if="!selectedRecording.incognito">+ <div v-if="foldersEnabled && selectedRecording.can_edit !== false"+ class="btn btn--icon btn--sm relative flex-shrink-0"+ :title="selectedRecording.folder_id ? getFolderName(selectedRecording.folder_id) : 'Assign Folder'">+ <select @change.stop="assignFolderToRecording(selectedRecording.id, $event.target.value || null)"+ :value="selectedRecording.folder_id || ''"+ class="absolute inset-0 w-full h-full opacity-0 cursor-pointer">+ <option value="">No Folder</option>+ <option v-for="folder in availableFolders" :key="folder.id" :value="folder.id">+ ${ folder.name }+ </option>+ </select>+ <i class="fas fa-folder"+ :style="{ color: selectedRecording.folder_id ? getFolderColor(selectedRecording.folder_id) : '' }"></i>+ </div>+ <button @click.stop="toggleInbox(selectedRecording)"+ class="btn btn--icon btn--sm flex-shrink-0"+ :class="selectedRecording.is_inbox ? 'text-blue-500' : ''"+ title="Inbox"><i class="fas fa-inbox"></i></button>+ <button @click.stop="toggleHighlight(selectedRecording)"+ class="btn btn--icon btn--sm flex-shrink-0"+ :class="selectedRecording.is_highlighted ? 'text-yellow-500' : ''"+ title="Highlight"><i class="fas fa-star"></i></button>+ <button @click.stop="editRecordingTags(selectedRecording)"+ class="btn btn--icon btn--sm flex-shrink-0"+ title="Edit tags"><i class="fas fa-tags"></i></button>+ <!-- Subtle inline divider so the destructive / reset+ actions read as a distinct group from the+ everyday actions. -->+ <span class="flex-shrink-0 mx-0.5" style="width: 1px; height: 18px; background: var(--border-primary);"></span>+ <button @click.stop="confirmReprocess('transcription', selectedRecording)"+ v-if="selectedRecording && selectedRecording.can_edit !== false && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED')"+ class="btn btn--icon btn--sm flex-shrink-0"+ title="Reprocess transcription"><i class="fas fa-redo-alt"></i></button>+ <button @click.stop="confirmReprocess('summary', selectedRecording)"+ v-if="selectedRecording && selectedRecording.can_edit !== false && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED')"+ class="btn btn--icon btn--sm flex-shrink-0"+ title="Regenerate summary"><i class="fas fa-sync-alt"></i></button>+ <button @click.stop="confirmReset(selectedRecording)"+ v-if="['PENDING', 'PROCESSING', 'SUMMARIZING', 'FAILED'].includes(selectedRecording.status)"+ class="btn btn--icon btn--sm flex-shrink-0"+ style="color: var(--text-warn, #d97706);"+ title="Reset"><i class="fas fa-undo"></i></button>+ <button @click.stop="openSpeakerModal"+ v-if="processedTranscription.hasDialogue"+ class="btn btn--icon btn--sm flex-shrink-0"+ title="Identify speakers"><i class="fas fa-user-tag"></i></button>+ <button v-if="!selectedRecording.is_shared || (selectedRecording.share_info && selectedRecording.share_info.can_reshare)"+ @click.stop="openUnifiedShareModal(selectedRecording)"+ class="btn btn--icon btn--sm flex-shrink-0"+ title="Share"><i class="fas fa-share-alt"></i></button>+ <!-- Pushes delete to the right edge so it's+ visually separate from the everyday actions+ and harder to mis-tap. -->+ <span class="flex-1"></span>+ <button v-if="canDeleteRecordings && selectedRecording.can_delete !== false"+ @click.stop="confirmDelete(selectedRecording)"+ class="btn btn--icon btn--sm flex-shrink-0"+ style="color: var(--text-danger);"+ title="Delete"><i class="fas fa-trash"></i></button>+ </template>- <!-- Incognito mode: discard only -->- <template v-else>- <span class="text-[11px] px-2 inline-flex items-center gap-1" style="color: var(--text-warn, #d97706);">- <i class="fas fa-user-secret"></i>- Incognito Mode- </span>- <button @click.stop="clearIncognitoRecordingWithConfirm"- class="btn btn--icon btn--sm flex-shrink-0"- style="color: var(--text-danger);"- title="Discard incognito recording"><i class="fas fa-trash"></i></button>- </template>+ <template v-else>+ <span class="text-[11px] px-2 inline-flex items-center gap-1" style="color: var(--text-warn, #d97706);">+ <i class="fas fa-user-secret"></i>+ Incognito Mode+ </span>+ <span class="flex-1"></span>+ <button @click.stop="clearIncognitoRecordingWithConfirm"+ class="btn btn--icon btn--sm flex-shrink-0"+ style="color: var(--text-danger);"+ title="Discard incognito recording"><i class="fas fa-trash"></i></button>+ </template>+ </div></div></div></div>diff --git a/templates/components/detail/mobile-notes-panel.html b/templates/components/detail/mobile-notes-panel.htmlindex eea57a1a..f0487eaf 100644--- a/templates/components/detail/mobile-notes-panel.html+++ b/templates/components/detail/mobile-notes-panel.html@@ -1,30 +1,38 @@-<!-- Mobile Notes Panel (design system v1) -->+<!-- Mobile Notes Panel.++ Same shape as mobile-summary-panel — toolbar hides during editing+ so the edit-pen active-state inconsistency disappears, and the+ editor takes the full panel height with thin outer padding plus a+ sticky Cancel/Save footer. --><div v-if="mobileTab === 'notes'" class="h-full flex flex-col">- <div 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" :title="t('buttons.copyNotes')"><i class="fas fa-copy"></i></button>- <button v-if="selectedRecording.notes" @click="downloadNotes" class="btn btn--icon" :title="t('buttons.downloadAsWord')"><i class="fas fa-download"></i></button>- <button @click="toggleEditNotes" class="btn btn--icon" :title="t('buttons.editNotes')"><i class="fas fa-pen"></i></button>+ <!-- 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>- <div class="flex-grow overflow-y-auto px-3 pb-3">- <div v-if="editingNotes" class="h-full flex flex-col">- <!-- See mobile-summary-panel.html for the rationale behind- the .markdown-editor-container wrapper. -->- <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 mt-2">- <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>- </div>++ <!-- Editing-mode shell. -->+ <div v-if="editingNotes" class="flex-grow flex flex-col min-h-0 px-2 pt-2">+ <div class="markdown-editor-container flex-1 min-h-0 flex flex-col">+ <textarea ref="notesMarkdownEditor"+ v-model="selectedRecording.notes"></textarea></div>- <div v-else @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>- <div class="empty__body">Markdown supported.</div>- </div>- <div v-else class="prose-flush h-full" v-html="selectedRecording.notes_html || selectedRecording.notes"></div>+ <div class="flex justify-end gap-2 flex-shrink-0 px-1 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></div></div>++ <!-- Reading-mode body. -->+ <div v-else class="flex-grow overflow-y-auto px-3 pb-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>+ <div class="empty__body">Markdown supported.</div>+ </div>+ <div v-else class="prose-flush h-full" v-html="selectedRecording.notes_html || selectedRecording.notes"></div>+ </div></div>diff --git a/templates/components/detail/mobile-summary-panel.html b/templates/components/detail/mobile-summary-panel.htmlindex f81b1922..9324a58a 100644--- a/templates/components/detail/mobile-summary-panel.html+++ b/templates/components/detail/mobile-summary-panel.html@@ -1,29 +1,42 @@-<!-- Mobile Summary Panel (design system v1) -->+<!-- Mobile Summary Panel.++ Two modes:+ (1) READING: small action toolbar (copy / download / edit) above+ the prose. Toolbar hides when editing so the "edit pen+ highlights when active" inconsistency from before is gone —+ in edit mode there's no panel toolbar at all, only the+ editor's own toolbar + a sticky Cancel/Save footer.+ (2) EDITING: editor fills the panel edge-to-edge with minimal+ outer padding so the typing area is as large as possible;+ Cancel and Save live in a sticky footer below the editor. --><div v-if="mobileTab === 'summary'" class="h-full flex flex-col">- <!-- Action toolbar -->- <div 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" :title="t('buttons.copySummary')"><i class="fas fa-copy"></i></button>- <button v-if="selectedRecording.summary" @click="downloadSummary" class="btn btn--icon" :title="t('buttons.downloadAsWord')"><i class="fas fa-download"></i></button>- <button @click="toggleEditSummary" class="btn btn--icon" :title="t('buttons.editSummary')"><i class="fas fa-pen"></i></button>+ <!-- 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>- <div class="flex-grow overflow-y-auto px-3 pb-3">- <div v-if="editingSummary" class="h-full flex flex-col">- <!-- EasyMDE replaces this textarea with its toolbar +- CodeMirror DOM. The .markdown-editor-container- wrapper is what hooks the editor's theme + height- CSS at styles.css line 3498+ (and the mobile-specific- overrides at line 2348+); without it the editor- renders un-themed and auto-grows past the viewport. -->- <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 mt-2">- <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>++ <!-- 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">+ <div class="markdown-editor-container flex-1 min-h-0 flex flex-col">+ <textarea ref="summaryMarkdownEditor"+ v-model="selectedRecording.summary"></textarea></div>- <div v-else>+ <div class="flex justify-end gap-2 flex-shrink-0 px-1 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">+ <div><div v-if="selectedRecording.status === 'SUMMARIZING'" class="empty"><div class="spinner spinner--lg"></div><div class="empty__title" v-text="t('help.generatingSummary')"></div>