Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Recording notes editor: restore depth — defined card, recessed input distinct from toolbar

Murtaza Nasir6f2301b97aa2
diff --git a/static/css/styles.css b/static/css/styles.css
index ba25552f..02e49999 100644
--- a/static/css/styles.css
+++ b/static/css/styles.css
@@ -3973,9 +3973,10 @@ body.fullscreen-mode {
display: flex;
flex-direction: column;
background: var(--bg-input);
- border: none;
+ border: 1px solid var(--border-secondary); /* defining edge around the editor card */
border-radius: 0.5rem;
overflow: hidden;
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}
.summary-editor-container {
@@ -4046,12 +4047,16 @@ body.fullscreen-mode {
max-height: none !important;
}
-/* In the accordion (recording-finished) state the editor fills the
- section edge-to-edge, so square off the corners — rounded corners would
- leave gaps against the square section. */
-.recording-notes-editor.accordion-expanded .EasyMDEContainer,
-.recording-notes-editor.accordion-expanded .editor-toolbar {
- border-radius: 0 !important;
+/* Recess the input area below the (lighter) toolbar so they read as
+ distinct surfaces. Needed especially in dark mode where --bg-input and
+ --bg-tertiary are the same colour, which made the toolbar and input
+ indistinguishable. Light mode keeps the near-white --bg-input field;
+ dark mode drops the input to the darker --bg-primary so it sits visibly
+ recessed under the gray-700 toolbar. */
+.dark .recording-notes-editor .CodeMirror,
+.dark .recording-notes-editor .editor-preview,
+.dark .recording-notes-editor .editor-preview-side {
+ background: var(--bg-primary);
}
.recording-notes-editor .EasyMDEContainer {
diff --git a/templates/components/recording-view.html b/templates/components/recording-view.html
index 5280d9fc..80e3887b 100644
--- a/templates/components/recording-view.html
+++ b/templates/components/recording-view.html
@@ -107,9 +107,10 @@
<i :class="['fas text-[var(--text-muted)] transition-transform duration-200',
expandedSection === 'notes' ? 'fa-chevron-up' : 'fa-chevron-down']"></i>
</button>
- <!-- Content (when expanded). No padding — the editor
- fills the section edge-to-edge. -->
- <div v-show="expandedSection === 'notes'" class="flex-1 min-h-0 flex flex-col">
+ <!-- Content (when expanded). Small padding so the
+ bordered editor reads as a defined card filling the
+ section, without the old wide box-in-box gap. -->
+ <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"