Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Fix queue #7 — right-rail summary/notes scrolling + editing panel sizing + leading heading gap — (a) .prose-flush > *:first-child { margin-top: 0 } so markdown that begins with an H1/H2/H3 no longer leaves a big visible gap above the title (the heading rule's margin-top: var(--sp-5) was adding 20px on top of the rail's existing py-4); (b) desktop-summary-tab.html and desktop-notes-tab.html are now flex-column shells (h-full flex flex-col overflow-hidden) with a single flex-1 scroll surface per state — reading mode's flex-1 overflow-y-auto contains the prose, editing mode's flex-1 contains the textarea but the OUTER container has overflow-hidden so the textarea's OWN scrollbar handles long content instead of the outer container expanding; previous layout used an outer overflow-y-auto with an inner h-full flex which let the textarea's scrollHeight push the editing-hint and the right-rail save buttons offscreen for long summaries / notes; (c) inner padding moved from the textarea's inline style to its parent so the .field primitive keeps its standard inset and the textarea uses the field primitive's own padding
Murtaza Nasir82da7861d6a0
diff --git a/static/css/primitives.css b/static/css/primitives.cssindex 02601785..5632820e 100644--- a/static/css/primitives.css+++ b/static/css/primitives.css@@ -927,6 +927,11 @@ html.dark .modal-overlay {margin-top: var(--sp-5);margin-bottom: var(--sp-2);}+/* Zero the leading margin on the first element so markdown that+ starts with a heading doesn't leave a big visible gap above it. */+.prose-flush > *:first-child {+ margin-top: 0;+}.prose-flush h1 { font-size: 1.25rem; letter-spacing: -0.01em; }.prose-flush h2 { font-size: 1.125rem; }.prose-flush h3 { font-size: 1rem; }diff --git a/templates/components/detail/desktop-notes-tab.html b/templates/components/detail/desktop-notes-tab.htmlindex e6b374d6..9baecc81 100644--- a/templates/components/detail/desktop-notes-tab.html+++ b/templates/components/detail/desktop-notes-tab.html@@ -1,8 +1,13 @@-<!-- 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">+<!-- Desktop Notes Tab. Flex-column shell so editing mode's textarea+ fills the rail with its own scrollbar instead of stretching the+ outer container (which pushed the tab-bar save buttons offscreen+ for long notes). Per-tab actions live in the right-rail tab-bar. -->+<div v-if="selectedTab === 'notes'" class="h-full flex flex-col overflow-hidden">++ <!-- Reading mode — single flex-1 scroll surface. -->+ <div v-if="!editingNotes"+ class="flex-1 overflow-y-auto px-4 py-4 prose-flush"+ @click="clickToEditNotes"><div v-if="selectedRecording.notes_html"v-html="selectedRecording.notes_html"></div>@@ -16,15 +21,16 @@</div></div>- <!-- Editing mode -->- <div v-else class="h-full flex flex-col">+ <!-- Editing mode — textarea fills the panel; its own scrollbar+ handles overflow so the tab-bar save buttons stay in reach. -->+ <div v-else class="flex-1 flex flex-col overflow-hidden px-4 py-4"><textarea ref="notesMarkdownEditor"v-model="selectedRecording.notes"- class="field flex-1"- style="resize: none; min-height: 0; padding: var(--sp-4);"+ class="field flex-1 w-full"+ style="resize: none; min-height: 0;":placeholder="t('form.enterNotesMarkdown')"></textarea>- <div class="t-meta" style="margin-top: var(--sp-2);">+ <div class="t-meta" style="margin-top: var(--sp-2); flex-shrink: 0;"><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>diff --git a/templates/components/detail/desktop-summary-tab.html b/templates/components/detail/desktop-summary-tab.htmlindex 0e1e7e75..110cf511 100644--- a/templates/components/detail/desktop-summary-tab.html+++ b/templates/components/detail/desktop-summary-tab.html@@ -1,52 +1,68 @@-<!-- 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">+<!-- Desktop Summary Tab. Rebuilt as a flex column shell so the+ editing mode keeps its textarea at a FIXED full-height surface+ with the textarea's own scrollbar handling overflow — the+ previous layout had an outer overflow-y-auto whose content+ stretched with the textarea's scrollHeight, pushing the+ editing-hint and the tab-bar save buttons offscreen for long+ summaries. The reading view still scrolls inside the same flex+ surface via .tab-rail-scroll.+ Per-tab action buttons (Edit / Save) live in the right-rail+ tab-bar action toolbar — that's why there's no save bar here. -->+<div v-if="selectedTab === 'summary'" class="h-full flex flex-col overflow-hidden">+<!-- 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 v-if="selectedRecording.status === 'SUMMARIZING'" class="flex-1 overflow-y-auto px-4 py-4">+ <div class="empty">+ <div class="spinner spinner--lg"></div>+ <div class="empty__title" v-text="t('summary.summaryInProgress')"></div>+ </div></div><!-- 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="t('summary.customizePrompt') || 'Customise prompt'">- <i class="fas fa-sliders-h"></i>- </button>+ <div v-else-if="!selectedRecording.summary" class="flex-1 overflow-y-auto px-4 py-4">+ <div 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="t('summary.customizePrompt') || 'Customise prompt'">+ <i class="fas fa-sliders-h"></i>+ </button>+ </div></div></div>- <!-- Reading mode -->+ <!-- Reading mode — single flex-1 scroll surface, content padding+ is inside so the scrollbar runs the full edge. --><div v-else-if="!editingSummary"- class="prose-flush"+ class="flex-1 overflow-y-auto px-4 py-4 prose-flush"v-html="selectedRecording.summary_html || selectedRecording.summary"></div>- <!-- Editing mode (in-place; Cancel/Save live in the tab-bar action slot) -->- <div v-else class="h-full flex flex-col">+ <!-- Editing mode — textarea fills the full rail height; the+ textarea's OWN scrollbar handles overflow. No outer scroll+ here so the tab-bar Save button stays in reach for any+ summary length. -->+ <div v-else class="flex-1 flex flex-col overflow-hidden px-4 py-4"><textarea ref="summaryMarkdownEditor"v-model="selectedRecording.summary"- class="field flex-1"- style="resize: none; min-height: 0; padding: var(--sp-4);"+ class="field flex-1 w-full"+ style="resize: none; min-height: 0;":placeholder="t('form.enterSummaryMarkdown')"></textarea>- <div class="t-meta" style="margin-top: var(--sp-2);">+ <div class="t-meta" style="margin-top: var(--sp-2); flex-shrink: 0;"><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>