Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Recording notes editor: remove box-in-box outline, fill the container, consistent placeholder
Murtaza Nasir540909a9e8e1
diff --git a/static/css/styles.css b/static/css/styles.cssindex bee0d82d..52a9c3d4 100644--- a/static/css/styles.css+++ b/static/css/styles.css@@ -3961,12 +3961,19 @@ body.fullscreen-mode {font-weight: 600;}-/* Recording notes editor styles */+/* Recording notes editor styles.+ Matches the Summary/Notes .markdown-editor-container treatment: the+ editor IS the surface (bg-input fill, rounded), with NO outer border —+ the previous 1px border-secondary outline made it read as a box inside+ the section's padded box ("box in a box"). EasyMDE's own default+ CodeMirror/toolbar borders are neutralised below so it's one seamless+ surface that fills the container. */.recording-notes-editor .EasyMDEContainer {height: 100%;display: flex;flex-direction: column;- border: 1px solid var(--border-secondary);+ background: var(--bg-input);+ border: none;border-radius: 0.5rem;overflow: hidden;}@@ -3985,11 +3992,20 @@ body.fullscreen-mode {flex-grow: 1;background: var(--bg-input);color: var(--text-primary);+ border: none !important; /* neutralise EasyMDE's default CodeMirror border (the inner box) */+}++/* Only the wrapper scrolls — keeps a single scrollbar inside the editor. */+.recording-notes-editor .CodeMirror-scroll {+ overflow: auto !important;+ height: 100% !important;}.recording-notes-editor .editor-toolbar {background: var(--bg-tertiary);+ border: none; /* drop EasyMDE's default toolbar outline */border-bottom: 1px solid var(--border-secondary);+ border-radius: 0.5rem 0.5rem 0 0;}.recording-notes-editor .editor-toolbar button {diff --git a/static/js/modules/composables/ui.js b/static/js/modules/composables/ui.jsindex 483038d8..914c6280 100644--- a/static/js/modules/composables/ui.js+++ b/static/js/modules/composables/ui.js@@ -1986,7 +1986,9 @@ export function useUI(state, utils, processedTranscription) {element: recordingNotesEditor.value,spellChecker: false,autofocus: false,- placeholder: t('form.enterNotesMarkdown'),+ // Use the same placeholder key as the plain textarea so the+ // wording is consistent ("Type your notes in Markdown format…").+ placeholder: t('form.notesPlaceholder'),initialValue: recordingNotes.value || '',status: false,toolbar: [diff --git a/templates/components/recording-view.html b/templates/components/recording-view.htmlindex 841604df..6ca26973 100644--- a/templates/components/recording-view.html+++ b/templates/components/recording-view.html@@ -76,7 +76,7 @@<!-- STATE 1: Recording in progress — notes fill space, no accordion --><template v-if="isRecording">- <div class="flex-1 min-h-0 flex flex-col p-3 md:p-6">+ <div class="flex-1 min-h-0 flex flex-col p-2 md:p-3"><label for="recordingNotes" class="block text-sm font-medium text-[var(--text-secondary)] mb-1.5 flex-shrink-0"><i class="fas fa-pencil-alt mr-1"></i>Recording Notes (Markdown)@@ -108,7 +108,7 @@expandedSection === 'notes' ? 'fa-chevron-up' : 'fa-chevron-down']"></i></button><!-- Content (when expanded) -->- <div v-show="expandedSection === 'notes'" class="flex-1 min-h-0 flex flex-col p-3 md:p-6">+ <div v-show="expandedSection === 'notes'" class="flex-1 min-h-0 flex flex-col p-2 md:p-3"><div class="recording-notes-editor accordion-expanded"><textarea ref="recordingNotesEditor" v-model="recordingNotes"class="w-full h-full bg-[var(--bg-input)] border border-[var(--border-secondary)] rounded-lg p-2 md:p-3 text-sm focus:outline-none focus:ring-2 focus:ring-[var(--ring-focus)] resize-none"