Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Detail metadata row: group chips (tight 4px gap like sidebar) separately from text metadata
Murtaza Nasirf68f1666ff59
diff --git a/templates/components/detail-view.html b/templates/components/detail-view.htmlindex f08724d4..5dfced09 100644--- a/templates/components/detail-view.html+++ b/templates/components/detail-view.html@@ -55,34 +55,37 @@<!-- Desktop View --><div v-else class="flex-1 flex flex-col overflow-hidden">- <!-- Recording title + meta + action icons now live in the single- adaptive top header (components/header.html). The separate- desktop-header.html still exists in the repo but is no- longer rendered here so the screen returns ~70px of- vertical space. Compact meta strip below acts as the- secondary metadata row for date/size/participants etc. -->- <!-- Secondary metadata strip. Every entry is a direct sibling of- the outer flex-wrap so wrapping happens per-item, not per- nested group. Chips (folder + tags) use the shared .chip- primitive so they render identically to the sidebar chips. -->- <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-4 gap-y-1.5 text-xs text-[var(--text-muted)]">- <!-- Folder chip -->- <span v-if="foldersEnabled && selectedRecording.folder_id && !selectedRecording.incognito"- class="chip"- :style="{ backgroundColor: getFolderColor(selectedRecording.folder_id), color: getContrastTextColor(getFolderColor(selectedRecording.folder_id)) }"- :title="'Folder: ' + getFolderName(selectedRecording.folder_id)">- <i class="fas fa-folder"></i>- <span class="chip__label">${ getFolderName(selectedRecording.folder_id) }</span>- </span>-- <!-- Tag chips -->- <span v-for="tag in selectedRecording.tags" :key="tag.id"- class="chip"- :style="{ backgroundColor: tag.color || '#6B7280', color: getContrastTextColor(tag.color || '#6B7280') }"- :title="tag.group_id ? ('Group: ' + tag.group_name) : tag.name">- <i v-if="tag.group_id" class="fas fa-users"></i>- <span class="chip__label">${tag.name}</span>- </span>+ <!-- Recording title + meta + action icons live in the single+ adaptive top header (components/header.html). This compact+ strip is the secondary metadata row.++ TWO GROUPS, not one flat row: the chips (folder + tags) live+ in their own tight-gap container so adjacent tags sit close+ together exactly like the sidebar (gap-1 = 4px), and the+ text metadata (participants / date / file info) lives in a+ second container. When the row wraps, each group stays+ coherent — tablets together, "other stuff" together —+ instead of tags being flung apart by the wide inter-item+ gap 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)]">+ <!-- 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">+ <span v-if="foldersEnabled && selectedRecording.folder_id && !selectedRecording.incognito"+ class="chip"+ :style="{ backgroundColor: getFolderColor(selectedRecording.folder_id), color: getContrastTextColor(getFolderColor(selectedRecording.folder_id)) }"+ :title="'Folder: ' + getFolderName(selectedRecording.folder_id)">+ <i class="fas fa-folder"></i>+ <span class="chip__label">${ getFolderName(selectedRecording.folder_id) }</span>+ </span>+ <span v-for="tag in selectedRecording.tags" :key="tag.id"+ class="chip"+ :style="{ backgroundColor: tag.color || '#6B7280', color: getContrastTextColor(tag.color || '#6B7280') }"+ :title="tag.group_id ? ('Group: ' + tag.group_name) : tag.name">+ <i v-if="tag.group_id" class="fas fa-users"></i>+ <span class="chip__label">${tag.name}</span>+ </span>+ </div><!-- Divider between the chip group and the text metadata,shown only when there are chips to separate from. -->@@ -90,38 +93,41 @@aria-hidden="true"class="self-stretch w-px bg-[var(--border-primary)] opacity-60 my-0.5"></span>- <!-- 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')}+ <!-- 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>- </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'}+ <!-- 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>- </span>-- <!-- File metadata — each item a top-level sibling so it wraps- independently. -->- <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>++ <!-- 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></div><!-- Persistent audio player. By default sits at the BOTTOM of