Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Restore the EasyMDE editor's height containment + theme styling that my previous queue #7 rewrite accidentally killed — the desktop-summary-tab.html and desktop-notes-tab.html editing branches were dropping the markdown-editor-container wrapper, so the entire CSS block at styles.css line 3498+ that themes the EasyMDE chrome (background, toolbar, button colours) and constrains the CodeMirror height to flex:1 + min-height:0 + overflow:auto on the scroll element was scoped to a class that no longer existed in the DOM; EasyMDE then fell back to its un-themed default appearance with auto-grow height that extended past the viewport bottom; the wrapper is now re-added around each textarea ref so the existing themed CSS engages and the editor takes the available rail height with internal scrolling, in both summary and notes editing modes; the .field class on the textarea is removed since EasyMDE replaces the textarea with its own DOM
Murtaza Nasir47c0bec32ade
diff --git a/templates/components/detail/desktop-notes-tab.html b/templates/components/detail/desktop-notes-tab.htmlindex 9baecc81..593f2df4 100644--- a/templates/components/detail/desktop-notes-tab.html+++ b/templates/components/detail/desktop-notes-tab.html@@ -21,15 +21,16 @@</div></div>- <!-- Editing mode — textarea fills the panel; its own scrollbar- handles overflow so the tab-bar save buttons stay in reach. -->+ <!-- Editing mode — see desktop-summary-tab.html for the rationale+ behind the .markdown-editor-container wrapper; without it+ EasyMDE renders un-themed and auto-grows past the viewport. --><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 w-full"- style="resize: none; min-height: 0;"- :placeholder="t('form.enterNotesMarkdown')">- </textarea>+ <div class="markdown-editor-container flex-1 min-h-0 flex flex-col">+ <textarea ref="notesMarkdownEditor"+ v-model="selectedRecording.notes"+ :placeholder="t('form.enterNotesMarkdown')">+ </textarea>+ </div><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>diff --git a/templates/components/detail/desktop-summary-tab.html b/templates/components/detail/desktop-summary-tab.htmlindex 110cf511..9f6c3698 100644--- a/templates/components/detail/desktop-summary-tab.html+++ b/templates/components/detail/desktop-summary-tab.html@@ -51,17 +51,19 @@v-html="selectedRecording.summary_html || selectedRecording.summary"></div>- <!-- 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. -->+ <!-- Editing mode — EasyMDE is mounted onto the textarea below.+ The .markdown-editor-container wrapper is what hooks all the+ existing theme + height CSS (.markdown-editor-container+ .EasyMDEContainer { ... } in styles.css) — without it the+ editor falls back to its un-themed default appearance with+ auto-grow height that extends past the viewport. --><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 w-full"- style="resize: none; min-height: 0;"- :placeholder="t('form.enterSummaryMarkdown')">- </textarea>+ <div class="markdown-editor-container flex-1 min-h-0 flex flex-col">+ <textarea ref="summaryMarkdownEditor"+ v-model="selectedRecording.summary"+ :placeholder="t('form.enterSummaryMarkdown')">+ </textarea>+ </div><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>