Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Three sidebar improvements — (1) close the gap between the consolidated 56px page header and the sidebar: sidebar top changed from hardcoded 69px (old header height) to var(--app-header-height, 56px) so the sidebar sits flush below the header; (2) lighter, list-like card styling: per-row chrome reduced from p-3 rounded-lg border-2 (chunky cards with thick borders) to px-3 py-2.5 rounded-md border (single-pixel border, smaller radius) with a transparent default background that fills with bg-tertiary on hover instead of swapping a darker bg-accent-hover, giving a calmer reading rhythm while keeping the multi-line density the user asked to preserve; (3) selection checkbox no longer changes card heights: instead of injecting a 18px checkbox div before the title (which shifted layout when entering selection mode), the checkbox is now absolutely positioned in the top-right corner of each row with the title getting pr-7 only while selection mode is on, so toggling selection mode doesn't reflow anything
Murtaza Nasirb1fc74d8045d
diff --git a/static/css/styles.css b/static/css/styles.cssindex 964bdfa0..77216952 100644--- a/static/css/styles.css+++ b/static/css/styles.css@@ -3999,14 +3999,17 @@ textarea[ref="recordingNotesEditor"]:focus {/* Sidebar Container */.sidebar {- position: fixed; /* Changed to fixed to overlay correctly */- top: 69px; /* Height of the header */+ position: fixed;+ /* Top matches the consolidated header height (56px min-height ++ 2px*2 padding ≈ 56-60px). Use a CSS variable so a future change+ to the header height only needs to update one number. */+ top: var(--app-header-height, 56px);left: 0;bottom: 0;- width: 320px; /* w-80 */+ width: 320px;background-color: var(--bg-secondary);border-right: 1px solid var(--border-primary);- z-index: 50; /* Higher z-index to be above backdrop */+ z-index: 50;transform: translateX(0);transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);display: flex;diff --git a/templates/components/sidebar.html b/templates/components/sidebar.htmlindex 72bc5700..bb41c051 100644--- a/templates/components/sidebar.html+++ b/templates/components/sidebar.html@@ -354,24 +354,28 @@:key="recording.id"@click="selectionMode ? toggleSelection(recording.id) : selectRecording(recording)":class="[- 'p-3 rounded-lg cursor-pointer transition-all duration-200 border-2',+ 'recording-row relative px-3 py-2.5 rounded-md cursor-pointer transition-colors border',selectionMode && isSelected(recording.id)? 'bg-[var(--bg-accent)] border-[var(--border-accent)]': selectedRecording?.id === recording.id && !selectionMode? 'bg-[var(--bg-accent)] border-[var(--border-accent)]'- : recording.is_shared- ? 'bg-[var(--bg-secondary)] border-[var(--bg-tertiary)] hover:bg-[var(--bg-accent-hover)]'- : 'bg-[var(--bg-tertiary)] border-transparent hover:bg-[var(--bg-accent-hover)]'+ : 'bg-transparent border-transparent hover:bg-[var(--bg-tertiary)]']">+ <!-- Selection checkbox: absolutely positioned in+ the top-right corner so it doesn't reflow+ the title or change card heights when the+ user toggles selection mode. -->+ <div v-if="selectionMode"+ @click.stop="toggleSelection(recording.id)"+ class="absolute top-2 right-2 z-10">+ <input type="checkbox"+ :checked="isSelected(recording.id)"+ class="selection-checkbox"+ @click.stop="toggleSelection(recording.id)">+ </div><!-- Title and Status Row -->- <div class="flex items-center justify-between mb-1">- <!-- Checkbox for selection mode -->- <div v-if="selectionMode" @click.stop="toggleSelection(recording.id)" class="flex-shrink-0 mr-2">- <input type="checkbox"- :checked="isSelected(recording.id)"- class="selection-checkbox"- @click.stop="toggleSelection(recording.id)">- </div>+ <div class="flex items-center justify-between mb-1"+ :class="{ 'pr-7': selectionMode }"><h4 class="font-medium text-sm truncate flex-1 mr-2" :class="selectedRecording?.id === recording.id && !selectionMode ? 'text-[var(--text-accent)]' : 'text-[var(--text-primary)]'">${ recording.title || t('common.untitled') }</h4>