Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Sidebar polish — (1) align section labels with row content: the TODAY/THIS WEEK/LAST MONTH headers now use the t-label primitive class and inherit the same px-3 left padding as the rows below them, so titles no longer appear indented relative to the section labels (hierarchy reads through uppercase+muted+11px label style, not through indentation); (2) subtle separation between items: a new .recording-group wrapper draws a 1px hairline between consecutive rows using var(--border-primary), giving a calm rhythm without the chunky per-card borders the previous design used; the hairline disappears around the active or hovered row so the selection feels continuous; (3) active row marker: a 3px accent-coloured bar runs down the left edge of the active row's gutter so the selection reads from the eye-track even when scrolled; (4) per-row border removed since the hairline now handles separation and the active state has its own marker
Murtaza Nasir3c1e0576c1d6
diff --git a/static/css/styles.css b/static/css/styles.cssindex 77216952..a1adff64 100644--- a/static/css/styles.css+++ b/static/css/styles.css@@ -4365,3 +4365,47 @@ select:disabled {background: rgba(255, 255, 255, 0.3);border-radius: 2px;}+++/* ---- Sidebar recording rows ------------------------------------------ */++/* Each section group wraps its rows so we can draw subtle hairlines+ between siblings without dealing with first/last-child quirks on the+ loop's v-for. */+.recording-group {+ display: flex;+ flex-direction: column;+}++/* Subtle separator between consecutive rows. Uses a 1px inset shadow on+ the inner edge so the line never extends past the row's padded area+ and never doubles up with the row's own border. */+.recording-group > .recording-row + .recording-row {+ border-top: 1px solid var(--border-primary);+}++/* The hairline disappears once a row enters the active or hover state+ so the selection feels continuous and uninterrupted. */+.recording-group > .recording-row.is-active,+.recording-group > .recording-row:hover,+.recording-group > .recording-row.is-active + .recording-row,+.recording-group > .recording-row:hover + .recording-row {+ border-top-color: transparent;+}++/* Active row gets a left accent bar in the gutter so the selection+ reads from the eye-track of the sidebar even when scrolled. */+.recording-row {+ border-radius: var(--radius-sm);+ position: relative;+}+.recording-row.is-active::before {+ content: '';+ position: absolute;+ top: 6px;+ bottom: 6px;+ left: 0;+ width: 3px;+ border-radius: 0 2px 2px 0;+ background: var(--text-accent);+}diff --git a/templates/components/sidebar.html b/templates/components/sidebar.htmlindex bb41c051..02b03ea8 100644--- a/templates/components/sidebar.html+++ b/templates/components/sidebar.html@@ -345,21 +345,25 @@</div></div>- <div v-for="group in groupedRecordings" :key="group.title" class="mb-6">- <h3 class="text-xs font-semibold text-[var(--text-muted)] uppercase tracking-wide mb-2">+ <!-- Section group. Header gets the same left padding as+ the rows so titles don't appear indented vs the+ section label — the hierarchy reads through type+ weight / case / colour, not through indentation. -->+ <div v-for="group in groupedRecordings" :key="group.title" class="mb-5">+ <h3 class="t-label px-3 mb-1.5">${group.title}</h3>- <div class="space-y-1">+ <div class="recording-group"><div v-for="recording in group.items":key="recording.id"@click="selectionMode ? toggleSelection(recording.id) : selectRecording(recording)":class="[- 'recording-row relative px-3 py-2.5 rounded-md cursor-pointer transition-colors border',+ 'recording-row relative px-3 py-2.5 cursor-pointer transition-colors',selectionMode && isSelected(recording.id)- ? 'bg-[var(--bg-accent)] border-[var(--border-accent)]'+ ? 'bg-[var(--bg-accent)] is-active': selectedRecording?.id === recording.id && !selectionMode- ? 'bg-[var(--bg-accent)] border-[var(--border-accent)]'- : 'bg-transparent border-transparent hover:bg-[var(--bg-tertiary)]'+ ? 'bg-[var(--bg-accent)] is-active'+ : 'bg-transparent hover:bg-[var(--bg-tertiary)]']"><!-- Selection checkbox: absolutely positioned inthe top-right corner so it doesn't reflow