Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Pass B: right-rail tab strip rebuilt with primitives — single 40px row carrying Summary/Notes/Events tabs (with inline word/item counts) on the left and per-tab action toolbar on the right; tab content now uses .prose-flush class (no inner card chrome) so prose flows on the rail surface; editing mode replaces action icons with Cancel/Save in the same strip; summary/notes word counts exposed as Vue computeds with k-suffix formatting
Murtaza Nasirdfcae881b502
diff --git a/static/css/primitives.css b/static/css/primitives.cssindex c234c791..ebe53767 100644--- a/static/css/primitives.css+++ b/static/css/primitives.css@@ -538,6 +538,152 @@ html.dark {.banner--danger { background: var(--bg-danger-light); border-color: var(--border-danger); color: var(--text-danger-strong, var(--text-danger)); }+/* ---- Modal / dialog ----------------------------------------------------+ *+ * Standard modal grammar:+ *+ * <div class="modal-overlay" @click.self="close">+ * <div class="modal-panel modal-panel--md">+ * <div class="modal-header">+ * <h3 class="modal-title">Title</h3>+ * <button class="modal-close" @click="close"><i class="fas fa-times"></i></button>+ * </div>+ * <div class="modal-body">…</div>+ * <div class="modal-footer">+ * <button class="btn btn--ghost">Cancel</button>+ * <button class="btn btn--primary">Save</button>+ * </div>+ * </div>+ * </div>+ *+ * Size variants: --xs (320), --sm (440), --md (560), --lg (760), --xl (980),+ * --full (95vw). All scroll within the body region if content overflows.+ * --------------------------------------------------------------------- */++.modal-overlay {+ position: fixed;+ inset: 0;+ background: rgba(0, 0, 0, 0.55);+ backdrop-filter: blur(4px);+ display: flex;+ align-items: center;+ justify-content: center;+ padding: var(--sp-4);+ z-index: 50;+ animation: modalFadeIn 140ms ease-out;+}++html.dark .modal-overlay {+ background: rgba(0, 0, 0, 0.7);+}++@keyframes modalFadeIn {+ from { opacity: 0; }+ to { opacity: 1; }+}++.modal-panel {+ background: var(--bg-secondary);+ color: var(--text-primary);+ border: var(--border-hairline) solid var(--border-primary);+ border-radius: var(--radius-lg);+ box-shadow: var(--shadow-lg);+ width: 100%;+ max-width: 560px;+ max-height: 88vh;+ display: flex;+ flex-direction: column;+ overflow: hidden;+ animation: modalPanelIn 180ms cubic-bezier(0.16, 1, 0.3, 1);+}++@keyframes modalPanelIn {+ from { opacity: 0; transform: translateY(8px) scale(0.985); }+ to { opacity: 1; transform: translateY(0) scale(1); }+}++.modal-panel--xs { max-width: 320px; }+.modal-panel--sm { max-width: 440px; }+.modal-panel--md { max-width: 560px; }+.modal-panel--lg { max-width: 760px; }+.modal-panel--xl { max-width: 980px; }+.modal-panel--full { max-width: 95vw; max-height: 95vh; }++.modal-header {+ display: flex;+ align-items: center;+ gap: var(--sp-3);+ padding: var(--sp-4) var(--sp-5);+ border-bottom: var(--border-hairline) solid var(--border-primary);+ flex: 0 0 auto;+}++.modal-title {+ flex: 1;+ font-size: var(--fs-subhead);+ font-weight: 600;+ color: var(--text-primary);+ line-height: var(--lh-tight);+ margin: 0;+}++.modal-subtitle {+ font-size: var(--fs-meta);+ color: var(--text-muted);+ margin-top: 2px;+}++.modal-close {+ appearance: none;+ background: transparent;+ border: none;+ color: var(--text-muted);+ width: 32px;+ height: 32px;+ display: inline-flex;+ align-items: center;+ justify-content: center;+ border-radius: var(--radius-sm);+ cursor: pointer;+ transition: background var(--t-fast) ease, color var(--t-fast) ease;+}+.modal-close:hover {+ background: var(--bg-tertiary);+ color: var(--text-primary);+}++.modal-body {+ padding: var(--sp-5);+ overflow-y: auto;+ flex: 1 1 auto;+ font-size: var(--fs-body);+ line-height: var(--lh-base);+}++.modal-body--flush {+ padding: 0;+}++.modal-footer {+ display: flex;+ align-items: center;+ justify-content: flex-end;+ gap: var(--sp-2);+ padding: var(--sp-3) var(--sp-5);+ border-top: var(--border-hairline) solid var(--border-primary);+ background: var(--bg-tertiary);+ flex: 0 0 auto;+}++.modal-footer--between {+ justify-content: space-between;+}++/* Variant: danger-leaning modals get a subtle danger accent on the title */+.modal-panel--danger .modal-header { border-bottom-color: var(--border-danger); }+.modal-panel--danger .modal-title { color: var(--text-danger); }++/* ---- Floating panel (chat, dropdown body) ------------------------------ */.float-panel {@@ -580,6 +726,81 @@ html.dark {}+/* ---- Prose surfaces (flush) --------------------------------------------+ *+ * Replaces the legacy .summary-box / .notes-box card chrome in the+ * recording-detail right rail. Content lives directly on the rail+ * surface; structure comes from the surrounding tab strip + headings.+ * --------------------------------------------------------------------- */++.prose-flush {+ flex: 1;+ width: 100%;+ min-height: 0;+ min-width: 0;+ max-height: 100%;+ overflow-y: auto;+ overflow-x: hidden;+ scrollbar-gutter: stable;+ color: var(--text-primary);+ font-size: var(--fs-body);+ line-height: var(--lh-base);+ word-wrap: break-word;+ overflow-wrap: break-word;+}++.prose-flush h1, .prose-flush h2, .prose-flush h3, .prose-flush h4 {+ color: var(--text-primary);+ font-weight: 600;+ line-height: var(--lh-snug);+ margin-top: var(--sp-5);+ margin-bottom: var(--sp-2);+}+.prose-flush h1 { font-size: 1.25rem; letter-spacing: -0.01em; }+.prose-flush h2 { font-size: 1.125rem; }+.prose-flush h3 { font-size: 1rem; }+.prose-flush h4 { font-size: 0.95rem; }+.prose-flush p { margin: 0 0 var(--sp-3) 0; }+.prose-flush ul, .prose-flush ol { margin: 0 0 var(--sp-3) var(--sp-5); padding: 0; }+.prose-flush li { margin: 0 0 var(--sp-1) 0; }+.prose-flush strong { color: var(--text-primary); font-weight: 600; }+.prose-flush em { color: var(--text-primary); }+.prose-flush code {+ background: var(--bg-tertiary);+ color: var(--text-primary);+ padding: 0.1em 0.35em;+ border-radius: var(--radius-sm);+ font-size: 0.92em;+ font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;+}+.prose-flush pre {+ background: var(--bg-tertiary);+ color: var(--text-primary);+ padding: var(--sp-3);+ border-radius: var(--radius-md);+ overflow-x: auto;+ margin: 0 0 var(--sp-3) 0;+ font-size: 0.9em;+}+.prose-flush a {+ color: var(--text-accent);+ text-decoration: underline;+ text-decoration-thickness: 1px;+ text-underline-offset: 2px;+}+.prose-flush blockquote {+ border-left: 3px solid var(--border-accent);+ margin: 0 0 var(--sp-3) 0;+ padding-left: var(--sp-3);+ color: var(--text-muted);+}+.prose-flush hr {+ border: none;+ border-top: var(--border-hairline) solid var(--border-primary);+ margin: var(--sp-5) 0;+}++/* ---- Rail layout (right column of recording detail) -------------------- */.rail {diff --git a/static/js/app.modular.js b/static/js/app.modular.jsindex 1174593b..2d54ddad 100644--- a/static/js/app.modular.js+++ b/static/js/app.modular.js@@ -654,6 +654,31 @@ document.addEventListener('DOMContentLoaded', async () => {// --- Computed properties needed by composables ---const isMobileScreen = computed(() => windowWidth.value < 1024);+ // Word-count meta surfaced in the right-rail tab labels. We+ // strip HTML and collapse whitespace before counting so+ // markdown-rendered summary HTML doesn't inflate the count.+ const _countWords = (raw) => {+ if (!raw) return 0;+ const text = String(raw).replace(/<[^>]*>/g, ' ').trim();+ if (!text) return 0;+ return text.split(/\s+/).length;+ };+ const _formatCount = (n) => {+ if (n < 1000) return String(n);+ if (n < 10000) return (n / 1000).toFixed(1).replace(/\.0$/, '') + 'k';+ return Math.round(n / 1000) + 'k';+ };+ const summaryWordCount = computed(() => {+ if (!selectedRecording.value) return '';+ const n = _countWords(selectedRecording.value.summary);+ return n ? _formatCount(n) : '';+ });+ const notesWordCount = computed(() => {+ if (!selectedRecording.value) return '';+ const n = _countWords(selectedRecording.value.notes);+ return n ? _formatCount(n) : '';+ });+// Aggregate `{{name}}` variables across the currently selected// tags / folder / user / admin prompt chain. The pure helpers// live in modules/utils/prompt-variables.js so they can be unit@@ -781,6 +806,7 @@ document.addEventListener('DOMContentLoaded', async () => {currentColorScheme, showColorSchemeModal, windowWidth, mobileTab, isMetadataExpanded, expandedSection,showSortOptions, currentLanguage, currentLanguageName, availableLanguages, showLanguageMenu,colorSchemes, isMobileScreen, isMobileDevice,+ summaryWordCount, notesWordCount,// UploaduploadQueue, allJobs, currentlyProcessingFile, processingProgress, processingMessage,diff --git a/templates/components/detail/desktop-notes-tab.html b/templates/components/detail/desktop-notes-tab.htmlindex 0aed304b..e6b374d6 100644--- a/templates/components/detail/desktop-notes-tab.html+++ b/templates/components/detail/desktop-notes-tab.html@@ -1,57 +1,32 @@-<!-- Desktop Notes Tab -->-<div v-if="selectedTab === 'notes'" class="h-full p-4 overflow-y-auto">- <div class="content-box h-full relative">- <div v-if="!editingNotes" class="absolute top-2 right-4 flex gap-1 z-10">- <button @click="copyNotes"- :title="t('buttons.copyNotes')"- class="w-8 h-8 flex items-center justify-center bg-transparent hover:bg-[var(--bg-secondary)] text-[var(--text-muted)] hover:text-[var(--text-primary)] rounded-md border border-transparent hover:border-[var(--border-secondary)] transition-all duration-200 opacity-60 hover:opacity-100">- <i class="fas fa-copy text-sm"></i>- </button>- <button @click="downloadNotes"- :title="t('buttons.downloadNotes')"- class="w-8 h-8 flex items-center justify-center bg-transparent hover:bg-[var(--bg-secondary)] text-[var(--text-muted)] hover:text-[var(--text-primary)] rounded-md border border-transparent hover:border-[var(--border-secondary)] transition-all duration-200 opacity-60 hover:opacity-100">- <i class="fas fa-download text-sm"></i>- </button>- <button @click="toggleEditNotes"- :title="t('buttons.editNotes')"- class="w-8 h-8 flex items-center justify-center bg-transparent hover:bg-[var(--bg-secondary)] text-[var(--text-muted)] hover:text-[var(--text-primary)] rounded-md border border-transparent hover:border-[var(--border-secondary)] transition-all duration-200 opacity-60 hover:opacity-100">- <i class="fas fa-edit text-sm"></i>- </button>+<!-- Desktop Notes Tab (design system v1).+ Per-tab actions live in the right-rail tab-bar; in-place edit. -->+<div v-if="selectedTab === 'notes'" class="h-full px-4 py-4 overflow-y-auto">+ <!-- Reading mode -->+ <div v-if="!editingNotes" class="prose-flush h-full" @click="clickToEditNotes">+ <div v-if="selectedRecording.notes_html"+ v-html="selectedRecording.notes_html"></div>-- <div v-if="!editingNotes"- class="notes-box h-full"- @click="clickToEditNotes">- <div v-if="selectedRecording.notes_html"- v-html="selectedRecording.notes_html">- </div>- <div v-else-if="selectedRecording.notes"- class="whitespace-pre-wrap">- ${selectedRecording.notes}- </div>- <div v-else class="text-[var(--text-muted)] italic cursor-pointer hover:text-[var(--text-secondary)]">- ${ t('help.clickToAddNotes') }- </div>+ <div v-else-if="selectedRecording.notes" class="whitespace-pre-wrap">+ ${selectedRecording.notes}+ </div>+ <div v-else class="empty">+ <div class="empty__icon"><i class="fas fa-pen"></i></div>+ <div class="empty__title" v-text="t('help.clickToAddNotes')"></div>+ <div class="empty__body t-meta">Markdown is supported.</div></div>+ </div>- <div v-else class="h-full flex flex-col">- <div class="markdown-editor-container flex-1">- <textarea ref="notesMarkdownEditor"- v-model="selectedRecording.notes"- class="w-full h-full p-4 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)]"- :placeholder="t('form.enterNotesMarkdown')">- </textarea>- </div>- <div class="flex justify-end gap-2 mt-2">- <button @click="cancelEditNotes"- class="px-3 py-1 text-sm bg-[var(--bg-secondary)] text-[var(--text-secondary)] border border-[var(--border-secondary)] rounded hover:bg-[var(--bg-tertiary)]">- Cancel- </button>- <button @click="saveEditNotes"- class="px-3 py-1 text-sm bg-[var(--bg-button)] text-[var(--text-button)] rounded hover:bg-[var(--bg-button-hover)]">- Save- </button>- </div>+ <!-- Editing mode -->+ <div v-else class="h-full flex flex-col">+ <textarea ref="notesMarkdownEditor"+ v-model="selectedRecording.notes"+ class="field flex-1"+ style="resize: none; min-height: 0; padding: var(--sp-4);"+ :placeholder="t('form.enterNotesMarkdown')">+ </textarea>+ <div class="t-meta" style="margin-top: var(--sp-2);">+ <i class="fas fa-circle" style="font-size: 6px; color: var(--text-accent); margin-right: var(--sp-1);"></i>+ <span>Editing — save from the tab bar above</span></div></div></div>diff --git a/templates/components/detail/desktop-right-panel.html b/templates/components/detail/desktop-right-panel.htmlindex 6055f3bc..ee6d9189 100644--- a/templates/components/detail/desktop-right-panel.html+++ b/templates/components/detail/desktop-right-panel.html@@ -224,39 +224,64 @@</div></div>- <!-- Summary/Notes Tabs -->+ <!-- Right-rail tab strip + per-tab action toolbar (design system v1).+ One row carries tab navigation on the left and per-tab actions on+ the right. No card chrome around the content — sections live+ directly on the rail surface. --><div :class="{'flex-1': !isChatMaximized, 'flex-none': isChatMaximized}" class="flex flex-col overflow-hidden">- <!-- Tab Navigation -->- <div class="bg-[var(--bg-tertiary)] border-b border-[var(--border-primary)] flex">- <button @click="selectedTab = 'summary'"- :class="[- 'flex-1 px-4 py-3 text-sm font-medium transition-colors',- selectedTab === 'summary'- ? 'bg-[var(--bg-secondary)] text-[var(--text-accent)] border-b-2 border-[var(--border-focus)]'- : 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]'- ]">- ${ t('summary.title') }- </button>- <button @click="selectedTab = 'notes'"- :class="[- 'flex-1 px-4 py-3 text-sm font-medium transition-colors',- selectedTab === 'notes'- ? 'bg-[var(--bg-secondary)] text-[var(--text-accent)] border-b-2 border-[var(--border-focus)]'- : 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]'- ]">- ${ t('notes.title') }- </button>- <button v-if="selectedRecording.events && selectedRecording.events.length > 0"- @click="selectedTab = 'events'"- :class="[- 'flex-1 px-4 py-3 text-sm font-medium transition-colors',- selectedTab === 'events'- ? 'bg-[var(--bg-secondary)] text-[var(--text-accent)] border-b-2 border-[var(--border-focus)]'- : 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]'- ]">- <i class="fas fa-calendar-alt mr-1"></i>- ${ t('events.title') } (${ selectedRecording.events.length })- </button>+ <div class="tabs-bar px-4">+ <div class="tabs">+ <button @click="selectedTab = 'summary'"+ class="tab"+ :class="{'is-active': selectedTab === 'summary'}">+ <span>${ t('summary.title') }</span>+ <span v-if="summaryWordCount" class="tab__count">${ summaryWordCount }</span>+ </button>+ <button @click="selectedTab = 'notes'"+ class="tab"+ :class="{'is-active': selectedTab === 'notes'}">+ <span>${ t('notes.title') }</span>+ <span v-if="notesWordCount" class="tab__count">${ notesWordCount }</span>+ </button>+ <button v-if="selectedRecording.events && selectedRecording.events.length > 0"+ @click="selectedTab = 'events'"+ class="tab"+ :class="{'is-active': selectedTab === 'events'}">+ <span>${ t('events.title') }</span>+ <span class="tab__count">${ selectedRecording.events.length }</span>+ </button>+ </div>++ <!-- Per-tab action toolbar. Each tab surfaces its own contextual+ actions. While editing, the same slot carries Cancel/Save. -->+ <div class="tabs-bar__actions">+ <!-- Summary actions -->+ <template v-if="selectedTab === 'summary' && selectedRecording.summary">+ <template v-if="!editingSummary">+ <button class="btn btn--icon" @click="copySummary" :title="t('buttons.copySummary')"><i class="fas fa-copy"></i></button>+ <button class="btn btn--icon" @click="downloadSummary" :title="t('buttons.downloadSummary')"><i class="fas fa-download"></i></button>+ <button class="btn btn--icon" @click="toggleEditSummary" :title="t('buttons.editSummary')"><i class="fas fa-pen"></i></button>+ <button class="btn btn--icon" @click="openCustomizeSummaryModal" :title="t('summary.customizePrompt') || 'Customize prompt'"><i class="fas fa-sliders-h"></i></button>+ </template>+ <template v-else>+ <button class="btn btn--sm btn--ghost" @click="cancelEditSummary">${ t('buttons.cancel') }</button>+ <button class="btn btn--sm btn--primary" @click="saveEditSummary">${ t('buttons.save') }</button>+ </template>+ </template>++ <!-- Notes actions -->+ <template v-else-if="selectedTab === 'notes'">+ <template v-if="!editingNotes">+ <button v-if="selectedRecording.notes" class="btn btn--icon" @click="copyNotes" :title="t('buttons.copyNotes')"><i class="fas fa-copy"></i></button>+ <button v-if="selectedRecording.notes" class="btn btn--icon" @click="downloadNotes" :title="t('buttons.downloadNotes')"><i class="fas fa-download"></i></button>+ <button class="btn btn--icon" @click="toggleEditNotes" :title="t('buttons.editNotes')"><i class="fas fa-pen"></i></button>+ </template>+ <template v-else>+ <button class="btn btn--sm btn--ghost" @click="cancelEditNotes">${ t('buttons.cancel') }</button>+ <button class="btn btn--sm btn--primary" @click="saveEditNotes">${ t('buttons.save') }</button>+ </template>+ </template>+ </div></div><!-- Tab Content -->diff --git a/templates/components/detail/desktop-summary-tab.html b/templates/components/detail/desktop-summary-tab.htmlindex 125a7d03..0e1e7e75 100644--- a/templates/components/detail/desktop-summary-tab.html+++ b/templates/components/detail/desktop-summary-tab.html@@ -1,79 +1,54 @@-<!-- Desktop Summary Tab -->-<div v-if="selectedTab === 'summary'" class="h-full p-4 overflow-y-auto">- <div v-if="selectedRecording.status === 'SUMMARIZING'" class="text-center py-8">- <i class="fas fa-spinner fa-spin text-2xl text-[var(--text-muted)]"></i>- <p class="mt-2 text-[var(--text-muted)]" v-text="t('summary.summaryInProgress')"></p>+<!-- Desktop Summary Tab (design system v1).+ No per-tab action buttons here — they live in the right-rail's+ tab-bar action toolbar so editing transitions in-place. -->+<div v-if="selectedTab === 'summary'" class="h-full px-4 py-4 overflow-y-auto">+ <!-- In progress -->+ <div v-if="selectedRecording.status === 'SUMMARIZING'" class="empty">+ <div class="spinner spinner--lg"></div>+ <div class="empty__title" v-text="t('summary.summaryInProgress')"></div></div>- <div v-else-if="!selectedRecording.summary" class="text-center py-8">- <i class="fas fa-file-alt text-3xl text-[var(--text-muted)] mb-3"></i>- <p class="text-[var(--text-muted)] mb-4" v-text="t('summary.noSummary')"></p>- <!-- Show message if transcription is an error -->- <p v-if="processedTranscription.isError" class="text-sm text-amber-500 mb-2">- <i class="fas fa-exclamation-triangle mr-1"></i>- Cannot generate summary: transcription failed- </p>- <div :class="['inline-flex rounded-lg shadow-lg transition-all duration-200 overflow-hidden', processedTranscription.isError ? '' : 'hover:shadow-xl']">- <button @click="generateSummary()"- :disabled="processedTranscription.isError"- :class="[- 'px-6 py-3 font-medium transition-colors duration-200',- processedTranscription.isError- ? 'bg-gray-400 text-gray-200 cursor-not-allowed'- : 'bg-gradient-to-r from-blue-600 to-purple-600 text-white hover:from-blue-700 hover:to-purple-700'- ]">- <i class="fas fa-magic mr-2"></i>${ t('summary.generateSummary') }+ <!-- Empty state -->+ <div v-else-if="!selectedRecording.summary" class="empty">+ <div class="empty__icon"><i class="fas fa-file-alt"></i></div>+ <div class="empty__title" v-text="t('summary.noSummary')"></div>+ <div v-if="processedTranscription.isError" class="banner banner--warn" style="margin-top: var(--sp-2);">+ <i class="fas fa-exclamation-triangle"></i>+ <span>Cannot generate summary: transcription failed</span>+ </div>+ <div class="flex items-center gap-2" style="margin-top: var(--sp-3);">+ <button class="btn btn--primary"+ @click="generateSummary()"+ :disabled="processedTranscription.isError">+ <i class="fas fa-magic"></i>+ <span>${ t('summary.generateSummary') }</span></button><button v-if="!processedTranscription.isError"+ class="btn btn--ghost btn--icon"@click="openCustomizeSummaryModal"- title="Customise the summarisation prompt"- class="px-3 py-3 font-medium text-white bg-gradient-to-r from-purple-600 to-purple-700 hover:from-purple-700 hover:to-purple-800 transition-colors duration-200 border-l border-white/20">- <i class="fas fa-sliders-h text-sm"></i>+ :title="t('summary.customizePrompt') || 'Customise prompt'">+ <i class="fas fa-sliders-h"></i></button></div></div>- <div v-else class="content-box relative">- <div v-if="!editingSummary" class="absolute top-2 right-4 flex gap-1 z-10">- <button @click="copySummary"- :title="t('buttons.copySummary')"- class="w-8 h-8 flex items-center justify-center bg-transparent hover:bg-[var(--bg-secondary)] text-[var(--text-muted)] hover:text-[var(--text-primary)] rounded-md border border-transparent hover:border-[var(--border-secondary)] transition-all duration-200 opacity-60 hover:opacity-100">- <i class="fas fa-copy text-sm"></i>- </button>- <button @click="downloadSummary"- :title="t('buttons.downloadSummary')"- class="w-8 h-8 flex items-center justify-center bg-transparent hover:bg-[var(--bg-secondary)] text-[var(--text-muted)] hover:text-[var(--text-primary)] rounded-md border border-transparent hover:border-[var(--border-secondary)] transition-all duration-200 opacity-60 hover:opacity-100">- <i class="fas fa-download text-sm"></i>- </button>- <button @click="toggleEditSummary"- :title="t('buttons.editSummary')"- class="w-8 h-8 flex items-center justify-center bg-transparent hover:bg-[var(--bg-secondary)] text-[var(--text-muted)] hover:text-[var(--text-primary)] rounded-md border border-transparent hover:border-[var(--border-secondary)] transition-all duration-200 opacity-60 hover:opacity-100">- <i class="fas fa-edit text-sm"></i>- </button>- </div>+ <!-- Reading mode -->+ <div v-else-if="!editingSummary"+ class="prose-flush"+ v-html="selectedRecording.summary_html || selectedRecording.summary">+ </div>- <div v-if="!editingSummary"- class="summary-box"- v-html="selectedRecording.summary_html || selectedRecording.summary">- </div>- <div v-else class="h-full flex flex-col">- <div class="markdown-editor-container flex-1">- <textarea ref="summaryMarkdownEditor"- v-model="selectedRecording.summary"- class="w-full h-full p-4 bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg resize-none focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)]"- :placeholder="t('form.enterSummaryMarkdown')">- </textarea>- </div>- <div class="flex justify-end gap-2 mt-2">- <button @click="cancelEditSummary"- class="px-3 py-1 text-sm bg-[var(--bg-secondary)] text-[var(--text-secondary)] border border-[var(--border-secondary)] rounded hover:bg-[var(--bg-tertiary)]">- Cancel- </button>- <button @click="saveEditSummary"- class="px-3 py-1 text-sm bg-[var(--bg-button)] text-[var(--text-button)] rounded hover:bg-[var(--bg-button-hover)]">- Save- </button>- </div>+ <!-- Editing mode (in-place; Cancel/Save live in the tab-bar action slot) -->+ <div v-else class="h-full flex flex-col">+ <textarea ref="summaryMarkdownEditor"+ v-model="selectedRecording.summary"+ class="field flex-1"+ style="resize: none; min-height: 0; padding: var(--sp-4);"+ :placeholder="t('form.enterSummaryMarkdown')">+ </textarea>+ <div class="t-meta" style="margin-top: var(--sp-2);">+ <i class="fas fa-circle" style="font-size: 6px; color: var(--text-accent); margin-right: var(--sp-1);"></i>+ <span>Editing — save from the tab bar above</span></div></div></div>