Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Detail metadata strip: neutral .chip-meta tablets for facts, drop divider, more vertical air — match the mobile expanded-panel look
Murtaza Nasir69aa6c75448e
diff --git a/static/css/primitives.css b/static/css/primitives.cssindex 7901e9d5..bfb8e104 100644--- a/static/css/primitives.css+++ b/static/css/primitives.css@@ -790,6 +790,58 @@ html.dark select.field {transform: scale(0.97);}+/* Neutral metadata chip — filled bg-tertiary tablet for facts like+ date / file size / filename / participants. Distinct from .chip+ (which carries a user-chosen colour for folders & tags): the grey+ fill makes facts read as a tidy row of tablets instead of bare+ icon+text, and visually separates them from the coloured tag chips+ without needing a divider. Icon is accent-coloured; label+ truncates. This is the look the mobile expanded panel uses; it is+ now shared so desktop + mobile render identically. */+.chip-meta {+ display: inline-flex;+ align-items: center;+ gap: 5px;+ padding: 3px 8px;+ border-radius: var(--radius-sm);+ font-size: var(--fs-label);+ font-weight: 500;+ line-height: 1.4;+ white-space: nowrap;+ max-width: 16rem;+ background: var(--bg-tertiary);+ color: var(--text-secondary);+ transition: opacity 0.15s ease;+}++.chip-meta > i {+ color: var(--text-accent);+ font-size: 0.85em;+ line-height: 0;+}++.chip-meta__label {+ overflow: hidden;+ text-overflow: ellipsis;+}++.chip-meta--clickable {+ cursor: pointer;+}++.chip-meta--clickable:hover {+ opacity: 0.8;+}++/* Warning variant for the duplicate-files indicator. */+.chip-meta--warn {+ background: rgba(217, 119, 6, 0.12);+ color: #d97706;+}+.chip-meta--warn > i {+ color: inherit;+}+/* Icon-only round chip for the small status badges (incoming-share /group / outgoing-share / public-link). Keeps semantic backgroundcolour from inline style. */diff --git a/templates/components/detail-view.html b/templates/components/detail-view.htmlindex 5dfced09..184b1860 100644--- a/templates/components/detail-view.html+++ b/templates/components/detail-view.html@@ -67,7 +67,13 @@coherent — tablets together, "other stuff" together —instead of tags being flung apart by the wide inter-itemgap the text group needs. -->- <div class="bg-[var(--bg-secondary)] border-b border-[var(--border-primary)] px-5 py-2 flex-shrink-0 flex flex-wrap items-center gap-x-3 gap-y-1.5 text-xs text-[var(--text-muted)]">+ <!-- Coloured chips (folder + tags) sit in a tight group like the+ sidebar; metadata facts are neutral .chip-meta tablets like+ the mobile expanded panel. The colour difference separates+ the two groups so no divider is needed even when they wrap+ onto separate lines. gap-y-2 gives a little vertical air+ between wrapped rows. -->+ <div class="bg-[var(--bg-secondary)] border-b border-[var(--border-primary)] px-5 py-2.5 flex-shrink-0 flex flex-wrap items-center gap-x-2.5 gap-y-2 text-xs text-[var(--text-muted)]"><!-- Chip group (folder + tags), tight 4px gap like the sidebar --><div v-if="(foldersEnabled && selectedRecording.folder_id && !selectedRecording.incognito) || (selectedRecording.tags && selectedRecording.tags.length > 0)"class="flex flex-wrap items-center gap-1">@@ -87,47 +93,33 @@</span></div>- <!-- Divider between the chip group and the text metadata,- shown only when there are chips to separate from. -->- <span v-if="(foldersEnabled && selectedRecording.folder_id && !selectedRecording.incognito) || (selectedRecording.tags && selectedRecording.tags.length > 0)"- aria-hidden="true"- class="self-stretch w-px bg-[var(--border-primary)] opacity-60 my-0.5"></span>-- <!-- Text-metadata group: participants / date / file info /- duplicate. Comfortable inter-item gap; wraps internally. -->- <div class="flex flex-wrap items-center gap-x-4 gap-y-1">- <!-- Participants -->- <span class="inline-flex items-center gap-1.5">- <i class="fas fa-users text-[var(--text-accent)] text-[11px]"></i>- <span @click="openParticipantsModal" class="cursor-pointer hover:text-[var(--text-accent)] transition-colors max-w-[260px] truncate"- :title="selectedRecording.participants || t('help.noParticipants')">- ${selectedRecording.participants || t('help.noParticipants')}- </span>- </span>-- <!-- Meeting date -->- <span class="inline-flex items-center gap-1.5">- <i class="fas fa-calendar text-[var(--text-accent)] text-[11px]"></i>- <span @click="openMeetingDatePicker" class="cursor-pointer hover:text-[var(--text-accent)] transition-colors">- ${selectedRecording.meeting_date ? formatDisplayDate(selectedRecording.meeting_date) : 'No date set'}- </span>- </span>-- <!-- File metadata items -->- <span v-for="(item, index) in (activeRecordingMetadata || [])" :key="`meta-${index}`"- class="inline-flex items-center gap-1.5">- <i :class="item.icon" class="text-[var(--text-accent)] text-[11px]"></i>- <span :title="item.fullText || item.text" class="max-w-[260px] truncate">${item.text}</span>- </span>-- <!-- Duplicate indicator -->- <button v-if="selectedRecording.duplicate_info"- @click="openDuplicatesModal(selectedRecording.duplicate_info)"- class="inline-flex items-center gap-1.5 text-amber-500 hover:text-amber-400 transition-colors cursor-pointer">- <i class="fas fa-copy text-[11px]"></i>- <span>${ selectedRecording.duplicate_info.total_copies } ${ t('upload.copies') || 'copies' }</span>- </button>- </div>+ <!-- Participants -->+ <span class="chip-meta chip-meta--clickable" @click="openParticipantsModal"+ :title="selectedRecording.participants || t('help.noParticipants')">+ <i class="fas fa-users"></i>+ <span class="chip-meta__label">${selectedRecording.participants || t('help.noParticipants')}</span>+ </span>++ <!-- Meeting date -->+ <span class="chip-meta chip-meta--clickable" @click="openMeetingDatePicker">+ <i class="fas fa-calendar"></i>+ <span class="chip-meta__label">${selectedRecording.meeting_date ? formatDisplayDate(selectedRecording.meeting_date) : 'No date set'}</span>+ </span>++ <!-- File metadata facts -->+ <span v-for="(item, index) in (activeRecordingMetadata || [])" :key="`meta-${index}`"+ class="chip-meta" :title="item.fullText || item.text">+ <i :class="item.icon"></i>+ <span class="chip-meta__label">${item.text}</span>+ </span>++ <!-- Duplicate indicator -->+ <button v-if="selectedRecording.duplicate_info"+ @click="openDuplicatesModal(selectedRecording.duplicate_info)"+ class="chip-meta chip-meta--warn chip-meta--clickable">+ <i class="fas fa-copy"></i>+ <span>${ selectedRecording.duplicate_info.total_copies } ${ t('upload.copies') || 'copies' }</span>+ </button></div><!-- Persistent audio player. By default sits at the BOTTOM ofdiff --git a/templates/components/detail/mobile-header.html b/templates/components/detail/mobile-header.htmlindex 18c86573..238b469a 100644--- a/templates/components/detail/mobile-header.html+++ b/templates/components/detail/mobile-header.html@@ -130,31 +130,24 @@instead of a comma-separated string. Each chip is thesame height/padding so the row has visual rhythm. --><div class="flex flex-wrap gap-1.5">- <button @click.stop="openMeetingDatePicker"- class="inline-flex items-center gap-1.5 px-2 py-1 rounded-md text-[11px] hover:opacity-80 transition-opacity"- style="background: var(--bg-tertiary); color: var(--text-secondary);">- <i class="fas fa-calendar text-[10px]" style="color: var(--text-accent);"></i>- <span v-text="selectedRecording.meeting_date ? formatDisplayDate(selectedRecording.meeting_date) : 'No date set'"></span>+ <button @click.stop="openMeetingDatePicker" class="chip-meta chip-meta--clickable">+ <i class="fas fa-calendar"></i>+ <span class="chip-meta__label" v-text="selectedRecording.meeting_date ? formatDisplayDate(selectedRecording.meeting_date) : 'No date set'"></span></button>- <span v-if="selectedRecording.is_shared"- class="inline-flex items-center gap-1.5 px-2 py-1 rounded-md text-[11px]"- style="background: var(--bg-tertiary); color: var(--text-secondary);">- <i class="fas fa-user text-[10px]" style="color: var(--text-accent);"></i>- <span v-text="selectedRecording.owner_username || t('sharing.unknown')"></span>+ <span v-if="selectedRecording.is_shared" class="chip-meta">+ <i class="fas fa-user"></i>+ <span class="chip-meta__label" v-text="selectedRecording.owner_username || t('sharing.unknown')"></span></span><template v-if="activeRecordingMetadata" v-for="(item, index) in activeRecordingMetadata" :key="index">- <span v-if="!item.isTagItem"- class="inline-flex items-center gap-1.5 px-2 py-1 rounded-md text-[11px]"- style="background: var(--bg-tertiary); color: var(--text-secondary);">- <i :class="[item.icon, 'text-[10px]']" style="color: var(--text-accent);"></i>- <span :title="item.fullText || item.text" v-text="item.text"></span>+ <span v-if="!item.isTagItem" class="chip-meta" :title="item.fullText || item.text">+ <i :class="item.icon"></i>+ <span class="chip-meta__label" v-text="item.text"></span></span></template><button v-if="selectedRecording.duplicate_info"@click.stop="openDuplicatesModal(selectedRecording.duplicate_info)"- class="inline-flex items-center gap-1.5 px-2 py-1 rounded-md text-[11px] hover:opacity-80 transition-opacity"- style="background: rgba(217, 119, 6, 0.12); color: var(--text-warn, #d97706);">- <i class="fas fa-copy text-[10px]"></i>+ class="chip-meta chip-meta--warn chip-meta--clickable">+ <i class="fas fa-copy"></i><span>${ selectedRecording.duplicate_info.total_copies } ${ t('upload.copies') || 'copies' }</span></button></div>