Skip to content

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

Python

Apply .chip primitive to the ACTUAL rendered metadata rows (detail-view.html + mobile-header.html); delete orphaned desktop-header.html + desktop-chat-section.html

Murtaza Nasir54c658036ac5
diff --git a/templates/components/detail-view.html b/templates/components/detail-view.html
index 284ab09b..f08724d4 100644
--- a/templates/components/detail-view.html
+++ b/templates/components/detail-view.html
@@ -61,46 +61,65 @@
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. -->
- <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-5 gap-y-1 text-sm text-[var(--text-muted)]">
- <div v-if="(foldersEnabled && selectedRecording.folder_id && !selectedRecording.incognito) || (selectedRecording.tags && selectedRecording.tags.length > 0)"
- class="flex items-center gap-1.5 flex-wrap">
- <span v-if="foldersEnabled && selectedRecording.folder_id && !selectedRecording.incognito"
- class="inline-flex items-center px-2 py-0.5 text-xs font-medium rounded-full"
- :style="{ backgroundColor: getFolderColor(selectedRecording.folder_id), color: getContrastTextColor(getFolderColor(selectedRecording.folder_id)) }"
- :title="'Folder: ' + getFolderName(selectedRecording.folder_id)">
- <i class="fas fa-folder mr-1 text-[10px]"></i>
- ${ getFolderName(selectedRecording.folder_id) }
- </span>
- <span v-for="tag in selectedRecording.tags" :key="tag.id"
- class="inline-flex items-center px-2 py-0.5 text-xs font-medium rounded-full"
- :style="{ backgroundColor: tag.color || '#6B7280', color: getContrastTextColor(tag.color || '#6B7280') }">
- <i v-if="tag.group_id" class="fas fa-users mr-1 text-[10px]"></i>
- ${tag.name}
- </span>
- </div>
- <div class="flex items-center gap-2">
- <i class="fas fa-users text-[var(--text-accent)] text-xs"></i>
- <span @click="openParticipantsModal" class="cursor-pointer hover:text-[var(--text-accent)] transition-colors max-w-[300px] truncate inline-block"
+ <!-- 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>
+
+ <!-- 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>
+
+ <!-- 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>
- </div>
- <div class="flex items-center gap-2">
- <i class="fas fa-calendar text-[var(--text-accent)] text-xs"></i>
+ </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>
- </div>
- <div v-if="activeRecordingMetadata && activeRecordingMetadata.length > 0" class="flex flex-wrap items-center gap-x-5 gap-y-1">
- <span v-for="(item, index) in activeRecordingMetadata" :key="index" class="flex items-center gap-1.5">
- <i :class="[item.icon, 'text-xs']"></i>
- <span :title="item.fullText || item.text">${item.text}</span>
- </span>
- </div>
+ </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="flex items-center gap-1.5 text-amber-500 hover:text-amber-400 transition-colors cursor-pointer">
- <i class="fas fa-copy"></i>
+ 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>
diff --git a/templates/components/detail/desktop-chat-section.html b/templates/components/detail/desktop-chat-section.html
deleted file mode 100644
index 3af106b6..00000000
--- a/templates/components/detail/desktop-chat-section.html
+++ /dev/null
@@ -1,121 +0,0 @@
-<!-- Desktop Chat Section (design system v1) — sits at the bottom of the
- right rail; header uses the same tabs-bar primitive as Summary/Notes
- so the visual rhythm continues; chat input uses .field + .btn--primary. -->
-<div class="border-t border-[var(--border-primary)] flex flex-col" :class="{'flex-1 overflow-hidden': isChatMaximized}">
- <!-- Chat header (tabs-bar pattern, clickable to toggle visibility) -->
- <div class="tabs-bar px-4" style="cursor: pointer;"
- @click="() => { showChat = !showChat; if (!showChat) isChatMaximized = false; }">
- <div class="tabs">
- <span class="tab is-active" style="cursor: pointer;">
- <i class="fas fa-comments" style="font-size: 13px; opacity: 0.7;"></i>
- <span>${ t('chat.chatWithTranscription') }</span>
- <span v-if="chatMessages.length > 0" class="tab__count">${ chatMessages.length }</span>
- </span>
- </div>
- <div class="tabs-bar__actions">
- <button v-if="chatMessages.length > 0"
- @click.stop="downloadChat"
- class="btn btn--icon"
- :title="t('buttons.downloadChat')">
- <i class="fas fa-download"></i>
- </button>
- <button @click.stop="toggleChatMaximize"
- class="btn btn--icon"
- :title="isChatMaximized ? t('tooltips.restoreChat') : t('tooltips.maximizeChat')">
- <i :class="['fas', isChatMaximized ? 'fa-compress' : 'fa-expand']"></i>
- </button>
- <button class="btn btn--icon"
- @click.stop="() => { showChat = !showChat; if (!showChat) isChatMaximized = false; }">
- <i :class="['fas transition-transform duration-200', showChat ? 'fa-chevron-down' : 'fa-chevron-up']"></i>
- </button>
- </div>
- </div>
-
- <!-- Chat content -->
- <div v-if="showChat" class="flex flex-col relative" :class="isChatMaximized ? 'flex-1 overflow-hidden' : 'max-h-96'">
- <!-- Clear button anchored top-right -->
- <button v-if="chatMessages.length > 0"
- @click="clearChat"
- class="btn btn--icon btn--sm absolute"
- style="top: var(--sp-2); right: var(--sp-2); z-index: 20; color: var(--text-muted);"
- title="Clear chat">
- <i class="fas fa-times"></i>
- </button>
-
- <!-- Messages -->
- <div ref="chatMessagesRef"
- class="flex-1 overflow-y-auto px-4 py-4 space-y-4">
- <div v-if="chatMessages.length === 0" class="empty">
- <div class="empty__icon"><i class="fas fa-robot"></i></div>
- <div class="empty__title" v-text="t('help.askAboutTranscription')"></div>
- <div class="empty__body">Type a question below. Markdown supported.</div>
- </div>
-
- <div v-for="(message, index) in chatMessages"
- :key="index"
- :class="[
- 'message relative group',
- message.role === 'user' ? 'user-message ml-auto' : 'ai-message',
- message.role === 'assistant' ? 'pr-10' : ''
- ]">
- <!-- Copy button for assistant messages -->
- <button v-if="message.role === 'assistant'"
- @click="copyMessage(message.content, $event)"
- class="btn btn--icon btn--sm absolute"
- style="top: var(--sp-2); right: var(--sp-2);"
- :title="t('buttons.copyMessage')">
- <i class="fas fa-copy"></i>
- </button>
- <!-- Thinking content (collapsible) -->
- <div v-if="message.thinking && message.role === 'assistant'" class="mb-2">
- <button @click="message.thinkingExpanded = !message.thinkingExpanded"
- class="text-xs text-[var(--text-muted)] hover:text-[var(--text-secondary)] flex items-center gap-1">
- <i :class="['fas', message.thinkingExpanded ? 'fa-chevron-down' : 'fa-chevron-right']"></i>
- <span v-text="t('help.modelReasoning')"></span>
- <span class="text-[var(--text-muted)]">(${message.thinking.split('\n').length} lines)</span>
- </button>
- <div v-if="message.thinkingExpanded"
- class="mt-2 p-3 bg-[var(--bg-tertiary)] border border-[var(--border-primary)] rounded-md text-xs text-[var(--text-muted)] max-h-64 overflow-y-auto">
- <pre class="whitespace-pre-wrap font-mono">${message.thinking}</pre>
- </div>
- </div>
- <!-- Main message content -->
- <div v-if="message.html" v-html="message.html"></div>
- <div v-else class="whitespace-pre-wrap">${message.content}</div>
- </div>
-
- <div v-if="isChatLoading" class="ai-message flex items-center gap-2">
- <div class="spinner"></div>
- <span v-text="t('chat.thinking')"></span>
- </div>
- </div>
-
- <!-- Chat input -->
- <div class="border-t border-[var(--border-primary)] px-4 py-3">
- <div class="flex gap-2 items-end">
- <textarea v-model="chatInput"
- ref="chatInputRef"
- @keydown="handleChatKeydown"
- :disabled="selectedRecording.status !== 'COMPLETED' || processedTranscription.isError"
- :placeholder="t('chat.placeholderWithHint')"
- class="field"
- style="resize: none;"
- rows="2">
- </textarea>
- <button @click="sendChatMessage"
- :disabled="!chatInput.trim() || isChatLoading || selectedRecording.status !== 'COMPLETED' || processedTranscription.isError"
- class="btn btn--primary btn--icon btn--lg"
- :title="t('buttons.send') || 'Send'">
- <i class="fas fa-paper-plane"></i>
- </button>
- </div>
- <div v-if="processedTranscription.isError" class="t-meta mt-2 flex items-center gap-1.5" style="color: var(--text-danger);">
- <i class="fas fa-exclamation-triangle"></i>
- <span v-text="t('chat.cannotChatTranscriptionFailed')"></span>
- </div>
- <div v-else-if="selectedRecording.status !== 'COMPLETED'" class="t-meta mt-2">
- <span v-text="t('chat.availableAfterTranscription')"></span>
- </div>
- </div>
- </div>
-</div>
diff --git a/templates/components/detail/desktop-header.html b/templates/components/detail/desktop-header.html
deleted file mode 100644
index a0c47681..00000000
--- a/templates/components/detail/desktop-header.html
+++ /dev/null
@@ -1,244 +0,0 @@
-<!-- Desktop Recording Header (design system v1) — compact, single
- adaptive bar carrying title, status, action icons and meta row.
- Padding tightened from p-6 to px-5 pt-4 pb-3 so the screen returns
- vertical space to content. -->
-<div class="bg-[var(--bg-secondary)] border-b border-[var(--border-primary)] px-5 pt-4 pb-3 flex-shrink-0">
- <div class="flex flex-col gap-2">
- <div class="flex items-start justify-between gap-3">
- <div class="flex-1 min-w-0">
- <div class="flex items-center gap-2">
- <h1 v-if="!editingTitle"
- @dblclick="selectedRecording.can_edit !== false ? toggleEditTitle() : null"
- :class="[
- 'text-2xl font-bold truncate transition-opacity',
- selectedRecording.is_shared ? 'text-[var(--text-accent)]' : 'text-[var(--text-primary)]',
- selectedRecording.can_edit !== false ? 'cursor-text hover:opacity-80' : ''
- ]"
- :title="selectedRecording.can_edit !== false ? 'Double-click to edit' : selectedRecording.title || 'Untitled Recording'">
- ${selectedRecording.title || 'Untitled Recording'}
- </h1>
- <input v-else
- v-model="selectedRecording.title"
- @blur="saveTitle"
- @keyup.enter="saveTitle"
- @keyup.esc="cancelEditTitle"
- ref="titleInput"
- class="text-2xl font-bold bg-transparent border-b-2 border-[var(--border-focus)] focus:outline-none text-[var(--text-primary)] flex-1 px-1"
- placeholder="Untitled Recording">
-
- <button v-if="!editingTitle && selectedRecording.can_edit !== false"
- @click="toggleEditTitle"
- class="p-1 text-[var(--text-muted)] hover:text-[var(--text-accent)] transition-colors opacity-60 hover:opacity-100 flex-shrink-0"
- :title="t('tooltips.editTitle')">
- <i class="fas fa-pen text-sm"></i>
- </button>
- <button v-if="!editingTitle && selectedRecording.can_edit !== false && selectedRecording.status === 'COMPLETED'"
- @click="regenerateTitle"
- :disabled="regeneratingTitle"
- class="p-1 text-[var(--text-muted)] hover:text-[var(--text-accent)] transition-colors opacity-60 hover:opacity-100 flex-shrink-0"
- :title="t('tooltips.regenerateTitle')">
- <i class="fas fa-sync-alt text-sm" :class="{ 'fa-spin': regeneratingTitle }"></i>
- </button>
-
- <!-- Status Badge (for non-completed recordings) -->
- <span v-if="!editingTitle && selectedRecording.status !== 'COMPLETED'"
- :class="getStatusClass(selectedRecording.status)"
- class="inline-flex items-center px-2.5 py-0.5 text-xs font-medium rounded-full whitespace-nowrap flex-shrink-0">
- ${formatStatus(selectedRecording.status)}
- </span>
- </div>
- </div>
-
- <!-- Action Buttons -->
- <div class="flex items-center gap-2 ml-4">
- <!-- Incognito recordings have limited actions -->
- <template v-if="!selectedRecording.incognito">
- <!-- Folder Assignment (icon-only dropdown matching other buttons) -->
- <div v-if="foldersEnabled && selectedRecording.can_edit !== false"
- class="btn btn--icon relative"
- :title="selectedRecording.folder_id ? getFolderName(selectedRecording.folder_id) : t('tooltips.assignFolder')">
- <select @change="assignFolderToRecording(selectedRecording.id, $event.target.value || null)"
- :value="selectedRecording.folder_id || ''"
- class="absolute inset-0 w-full h-full opacity-0 cursor-pointer">
- <option value="">No Folder</option>
- <option v-for="folder in availableFolders" :key="folder.id" :value="folder.id">
- ${ folder.name }
- </option>
- </select>
- <i class="fas fa-folder"
- :style="{ color: selectedRecording.folder_id ? getFolderColor(selectedRecording.folder_id) : '' }"></i>
- </div>
- <button @click="toggleInbox(selectedRecording)"
- class="btn btn--icon"
- :class="selectedRecording.is_inbox ? 'text-blue-500' : ''"
- :title="selectedRecording.is_inbox ? 'Mark as Read' : 'Move to Inbox'">
- <i class="fas fa-inbox"></i>
- </button>
- <button @click="toggleHighlight(selectedRecording)"
- class="btn btn--icon"
- :class="selectedRecording.is_highlighted ? 'text-yellow-500' : ''"
- :title="selectedRecording.is_highlighted ? 'Remove Highlight' : 'Highlight'">
- <i class="fas fa-star"></i>
- </button>
- <button @click="editRecordingTags(selectedRecording)"
- class="btn btn--icon"
- :title="t('buttons.editTags')">
- <i class="fas fa-tags"></i>
- </button>
- <button @click="confirmReprocess('transcription', selectedRecording)" v-if="selectedRecording && selectedRecording.can_edit !== false && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED')"
- class="btn btn--icon"
- :title="useAsrEndpoint ? 'Reprocess with ASR' : 'Reprocess transcription'">
- <i class="fas fa-redo-alt"></i>
- </button>
- <button @click="confirmReprocess('summary', selectedRecording)" v-if="selectedRecording && selectedRecording.can_edit !== false && (selectedRecording.status === 'COMPLETED' || selectedRecording.status === 'FAILED')"
- class="btn btn--icon"
- :title="t('buttons.reprocessSummary')">
- <i class="fas fa-sync-alt"></i>
- </button>
- <button @click="confirmReset(selectedRecording)" v-if="['PENDING', 'PROCESSING', 'SUMMARIZING', 'FAILED'].includes(selectedRecording.status)"
- class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors text-orange-500"
- :title="t('buttons.resetStuckProcessing')">
- <i class="fas fa-undo"></i>
- </button>
- <button @click="openSpeakerModal" v-if="processedTranscription.hasDialogue"
- class="btn btn--icon"
- :title="t('buttons.identifySpeakers')">
- <i class="fas fa-user-tag"></i>
- </button>
- <button v-if="!selectedRecording.is_shared || (selectedRecording.share_info && selectedRecording.share_info.can_reshare)"
- @click="openUnifiedShareModal(selectedRecording)"
- class="btn btn--icon"
- :title="t('buttons.shareRecording')">
- <i class="fas fa-share-alt"></i>
- </button>
- <button v-if="canDeleteRecordings && selectedRecording.can_delete !== false" @click="confirmDelete(selectedRecording)"
- class="btn btn--icon" style="color: var(--text-danger);">
- <i class="fas fa-trash"></i>
- </button>
- </template>
-
- <!-- Incognito mode: only show discard button -->
- <template v-else>
- <span class="text-xs text-amber-600 dark:text-amber-400 mr-2">
- <i class="fas fa-user-secret mr-1"></i>
- Incognito
- </span>
- <button @click="clearIncognitoRecordingWithConfirm"
- class="p-2 rounded-lg hover:bg-red-100 dark:hover:bg-red-900/30 text-red-600 dark:text-red-400 transition-colors"
- :title="t('tooltips.discardIncognito')">
- <i class="fas fa-trash"></i>
- </button>
- </template>
- </div>
- </div>
-
- <!-- Metadata Row.
- Every entry sits as a direct sibling of the outer flex-wrap
- container so wrapping happens per-item. Previously the
- file-metadata entries (activeRecordingMetadata) lived in
- their own nested flex-wrap div, which forced them ALL to
- drop to a new line as a block even when individual entries
- could have fit on the top row. Chips use the .chip primitive
- that matches the sidebar look (rounded-md, tight padding,
- label-size, semi-bold). Small badge dots use .chip-dot. -->
- <div class="flex flex-wrap items-center gap-x-4 gap-y-1.5 text-xs text-[var(--text-muted)]">
- <!-- Folder Pill -->
- <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>
-
- <!-- Shared by someone else (INCOMING) -->
- <span v-if="selectedRecording.is_shared"
- class="chip-dot bg-purple-500"
- :title="t('sharing.sharedBy') + ' ' + (selectedRecording.owner_username || t('sharing.unknown'))">
- <i class="fas fa-arrow-down"></i>
- </span>
-
- <!-- Group indicator -->
- <span v-if="selectedRecording.has_group_tags"
- class="chip-dot bg-blue-500"
- :title="t('sharing.teamRecording')">
- <i class="fas fa-users"></i>
- </span>
-
- <!-- Shared with others (OUTGOING) -->
- <span v-if="!selectedRecording.is_shared && selectedRecording.shared_with_count > 0"
- class="chip-dot bg-indigo-500"
- :title="t('sharing.sharedWith') + ' ' + selectedRecording.shared_with_count + ' ' + t('sharing.users')">
- <i class="fas fa-arrow-up"></i>
- </span>
-
- <!-- Public link shares -->
- <span v-if="!selectedRecording.is_shared && selectedRecording.public_share_count > 0"
- class="chip-dot bg-teal-500"
- :title="selectedRecording.public_share_count + ' ' + t('sharing.publicLinksGenerated')">
- <i class="fas fa-globe"></i>
- </span>
-
- <!-- Tags -->
- <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>
-
- <!-- Vertical separator between the chip group and the
- text-metadata items so the two reads as distinct bands
- even when they sit on the same wrapped line. Hidden
- when there are no preceding chips to separate from. -->
- <span v-if="(foldersEnabled && selectedRecording.folder_id && !selectedRecording.incognito) || selectedRecording.is_shared || selectedRecording.shared_with_count > 0 || selectedRecording.public_share_count > 0 || selectedRecording.has_group_tags || (selectedRecording.tags && selectedRecording.tags.length > 0)"
- 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')}
- </span>
- </span>
-
- <!-- Owner (for shared recordings) -->
- <span v-if="selectedRecording.is_shared" class="inline-flex items-center gap-1.5">
- <i class="fas fa-user text-[var(--text-accent)] text-[11px]"></i>
- <span class="max-w-[260px] truncate"
- :title="'Owner: ' + (selectedRecording.owner_username || t('sharing.unknown'))">
- ${selectedRecording.owner_username || t('sharing.unknown')}
- </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>
-
- <!-- Other Metadata — each item is 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>
- </div>
- </div>
-</div>
diff --git a/templates/components/detail/mobile-header.html b/templates/components/detail/mobile-header.html
index 9b000c56..18c86573 100644
--- a/templates/components/detail/mobile-header.html
+++ b/templates/components/detail/mobile-header.html
@@ -34,28 +34,28 @@
<div v-if="(foldersEnabled && selectedRecording.folder_id) || getRecordingTags(selectedRecording).length > 0 || selectedRecording.is_shared || selectedRecording.shared_with_count > 0 || selectedRecording.public_share_count > 0"
class="flex flex-wrap gap-1 mt-1.5">
<span v-if="foldersEnabled && selectedRecording.folder_id && !selectedRecording.incognito"
- class="inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-medium"
+ class="chip"
:style="{ backgroundColor: getFolderColor(selectedRecording.folder_id), color: getContrastTextColor(getFolderColor(selectedRecording.folder_id)) }">
- <i class="fas fa-folder mr-1"></i>
- <span v-text="getFolderName(selectedRecording.folder_id)"></span>
+ <i class="fas fa-folder"></i>
+ <span class="chip__label" v-text="getFolderName(selectedRecording.folder_id)"></span>
</span>
<button v-for="tag in getRecordingTags(selectedRecording)" :key="tag.id"
@click.stop="filterByTag(tag)"
- class="inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-medium hover:opacity-80 transition-all"
+ class="chip chip--clickable"
:style="{ backgroundColor: tag.color, color: getContrastTextColor(tag.color) }"
:title="tag.group_id ? ('Group: ' + tag.group_name) : tag.name">
- <i v-if="tag.group_id" class="fas fa-users mr-1"></i>
- <i v-else class="fas fa-tag mr-1"></i>
- <span v-text="tag.name"></span>
+ <i v-if="tag.group_id" class="fas fa-users"></i>
+ <i v-else class="fas fa-tag"></i>
+ <span class="chip__label" v-text="tag.name"></span>
</button>
- <span v-if="selectedRecording.is_shared" class="inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-medium bg-purple-500 text-white">
- <i class="fas fa-arrow-down mr-1"></i>Shared
+ <span v-if="selectedRecording.is_shared" class="chip bg-purple-500 text-white">
+ <i class="fas fa-arrow-down"></i><span class="chip__label">Shared</span>
</span>
- <span v-if="!selectedRecording.is_shared && selectedRecording.shared_with_count > 0" class="inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-medium bg-indigo-500 text-white">
- <i class="fas fa-arrow-up mr-1"></i>${ selectedRecording.shared_with_count }
+ <span v-if="!selectedRecording.is_shared && selectedRecording.shared_with_count > 0" class="chip bg-indigo-500 text-white">
+ <i class="fas fa-arrow-up"></i><span class="chip__label">${ selectedRecording.shared_with_count }</span>
</span>
- <span v-if="!selectedRecording.is_shared && selectedRecording.public_share_count > 0" class="inline-flex items-center px-2 py-0.5 rounded-full text-[10px] font-medium bg-teal-500 text-white">
- <i class="fas fa-globe mr-1"></i>${ selectedRecording.public_share_count }
+ <span v-if="!selectedRecording.is_shared && selectedRecording.public_share_count > 0" class="chip bg-teal-500 text-white">
+ <i class="fas fa-globe"></i><span class="chip__label">${ selectedRecording.public_share_count }</span>
</span>
</div>
</div>