Skip to content

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

Python

Sweep ad-hoc p-2 rounded-lg hover:bg-tertiary icon button patterns across mobile-header, desktop-header, and the global header — 17 patterns converted to .btn .btn--icon so all header action icons share the same hover/focus/disabled treatment as the rest of the design system; the danger-leaning delete icon is class-styled with inline color: var(--text-danger) for clarity

Murtaza Nasir708d795cc067
diff --git a/templates/components/detail/desktop-header.html b/templates/components/detail/desktop-header.html
index 08bc8c84..75f97029 100644
--- a/templates/components/detail/desktop-header.html
+++ b/templates/components/detail/desktop-header.html
@@ -55,7 +55,7 @@
<template v-if="!selectedRecording.incognito">
<!-- Folder Assignment (icon-only dropdown matching other buttons) -->
<div v-if="foldersEnabled && selectedRecording.can_edit !== false"
- class="relative p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors"
+ 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 || ''"
@@ -69,29 +69,29 @@
:style="{ color: selectedRecording.folder_id ? getFolderColor(selectedRecording.folder_id) : '' }"></i>
</div>
<button @click="toggleInbox(selectedRecording)"
- class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors"
+ 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="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors"
+ 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="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors"
+ 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="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors"
+ 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="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors"
+ class="btn btn--icon"
:title="t('buttons.reprocessSummary')">
<i class="fas fa-sync-alt"></i>
</button>
@@ -101,18 +101,18 @@
<i class="fas fa-undo"></i>
</button>
<button @click="openSpeakerModal" v-if="processedTranscription.hasDialogue"
- class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors"
+ 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="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors"
+ 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="p-2 rounded-lg hover:bg-[var(--bg-danger-light)] text-[var(--text-danger)] transition-colors">
+ class="btn btn--icon" style="color: var(--text-danger);">
<i class="fas fa-trash"></i>
</button>
</template>
diff --git a/templates/components/detail/mobile-header.html b/templates/components/detail/mobile-header.html
index 4f374927..c4b422b7 100644
--- a/templates/components/detail/mobile-header.html
+++ b/templates/components/detail/mobile-header.html
@@ -119,7 +119,7 @@
<template v-if="!selectedRecording.incognito">
<!-- Folder Assignment (icon-only dropdown matching other buttons) -->
<div v-if="foldersEnabled && selectedRecording.can_edit !== false"
- class="relative p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors flex-shrink-0"
+ class="btn btn--icon relative flex-shrink-0"
:title="selectedRecording.folder_id ? getFolderName(selectedRecording.folder_id) : 'Assign Folder'">
<select @change="assignFolderToRecording(selectedRecording.id, $event.target.value || null)"
:value="selectedRecording.folder_id || ''"
@@ -132,15 +132,15 @@
<i class="fas fa-folder"
:style="{ color: selectedRecording.folder_id ? getFolderColor(selectedRecording.folder_id) : '' }"></i>
</div>
- <button @click="toggleInbox(selectedRecording)" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors" :class="selectedRecording.is_inbox ? 'text-blue-500' : ''"><i class="fas fa-inbox"></i></button>
- <button @click="toggleHighlight(selectedRecording)" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors" :class="selectedRecording.is_highlighted ? 'text-yellow-500' : ''"><i class="fas fa-star"></i></button>
- <button @click="editRecordingTags(selectedRecording)" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors"><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="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors"><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="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors"><i class="fas fa-sync-alt"></i></button>
+ <button @click="toggleInbox(selectedRecording)" class="btn btn--icon" :class="selectedRecording.is_inbox ? 'text-blue-500' : ''"><i class="fas fa-inbox"></i></button>
+ <button @click="toggleHighlight(selectedRecording)" class="btn btn--icon" :class="selectedRecording.is_highlighted ? 'text-yellow-500' : ''"><i class="fas fa-star"></i></button>
+ <button @click="editRecordingTags(selectedRecording)" class="btn btn--icon"><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"><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"><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"><i class="fas fa-undo"></i></button>
- <button @click="openSpeakerModal" v-if="processedTranscription.hasDialogue" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors"><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="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors"><i class="fas fa-share-alt"></i></button>
- <button v-if="canDeleteRecordings && selectedRecording.can_delete !== false" @click="confirmDelete(selectedRecording)" class="p-2 rounded-lg hover:bg-[var(--bg-danger-light)] text-[var(--text-danger)] transition-colors"><i class="fas fa-trash"></i></button>
+ <button @click="openSpeakerModal" v-if="processedTranscription.hasDialogue" class="btn btn--icon"><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"><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 -->