Skip to content

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

Python

Pass F part 2: 19 more modals share the modal-overlay + modal-panel primitive outer chrome (auto-detected size from old max-w-* class and mapped to modal-panel--{xs/sm/md/lg/xl/full}); inner content kept intact for incremental per-modal cleanup, but every modal now has a consistent overlay backdrop blur and animation, a consistent panel border-radius/shadow/border, and theme-safe surface colours that work across all 6 themes × light/dark

Murtaza Nasirf8b31e388ad9
diff --git a/templates/modals/add-speaker-modal.html b/templates/modals/add-speaker-modal.html
index 6a19611e..d287f5ca 100644
--- a/templates/modals/add-speaker-modal.html
+++ b/templates/modals/add-speaker-modal.html
@@ -1,6 +1,6 @@
<!-- Add Speaker Modal -->
-<div v-if="showAddSpeakerModal" @click.self="closeAddSpeakerModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-md">
+<div v-if="showAddSpeakerModal" @click.self="closeAddSpeakerModal" class="modal-overlay">
+ <div class="modal-panel modal-panel--sm">
<div class="p-6 border-b border-[var(--border-primary)]">
<div class="flex items-center justify-between mb-4">
<h3 class="text-xl font-bold text-[var(--text-primary)]" v-text="t('modal.addSpeaker')"></h3>
diff --git a/templates/modals/asr-editor-modal.html b/templates/modals/asr-editor-modal.html
index 8c0bf964..c1349664 100644
--- a/templates/modals/asr-editor-modal.html
+++ b/templates/modals/asr-editor-modal.html
@@ -1,6 +1,6 @@
<!-- ASR Editor Modal -->
-<div v-if="showAsrEditorModal" @click.self="closeAsrEditorModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div @click="closeAllSpeakerSuggestions" class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-6xl flex flex-col max-h-[90vh]">
+<div v-if="showAsrEditorModal" @click.self="closeAsrEditorModal" class="modal-overlay">
+ <div @click="closeAllSpeakerSuggestions" class="modal-panel modal-panel--xl flex flex max-h-[90vh">
<div class="p-5 border-b border-[var(--border-primary)] flex-shrink-0 flex justify-between items-center">
<div class="flex items-center gap-3">
<h3 class="text-xl font-bold text-[var(--text-primary)]" v-text="t('modal.editAsrTranscription')"></h3>
diff --git a/templates/modals/bulk-delete-modal.html b/templates/modals/bulk-delete-modal.html
index e3326529..ed631822 100644
--- a/templates/modals/bulk-delete-modal.html
+++ b/templates/modals/bulk-delete-modal.html
@@ -1,6 +1,6 @@
<!-- Bulk Delete Confirmation Modal -->
-<div v-if="showBulkDeleteModal" @click.self="closeBulkDeleteModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-[100] p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-lg shadow-xl w-full max-w-md">
+<div v-if="showBulkDeleteModal" @click.self="closeBulkDeleteModal" class="modal-overlay">
+ <div class="modal-panel modal-panel--sm">
<div class="p-6">
<div class="flex items-center justify-between mb-4">
<div class="flex items-center gap-4">
diff --git a/templates/modals/bulk-reprocess-modal.html b/templates/modals/bulk-reprocess-modal.html
index 66d01dfa..1250fd23 100644
--- a/templates/modals/bulk-reprocess-modal.html
+++ b/templates/modals/bulk-reprocess-modal.html
@@ -1,6 +1,6 @@
<!-- Bulk Reprocess Modal -->
-<div v-if="showBulkReprocessModal" @click.self="closeBulkReprocessModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-[100] p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-md">
+<div v-if="showBulkReprocessModal" @click.self="closeBulkReprocessModal" class="modal-overlay">
+ <div class="modal-panel modal-panel--sm">
<div class="p-6 border-b border-[var(--border-primary)]">
<div class="flex items-center justify-between">
<div class="flex items-center gap-3">
diff --git a/templates/modals/bulk-tag-modal.html b/templates/modals/bulk-tag-modal.html
index 028f0a67..8c7b65d3 100644
--- a/templates/modals/bulk-tag-modal.html
+++ b/templates/modals/bulk-tag-modal.html
@@ -1,6 +1,6 @@
<!-- Bulk Tag Modal -->
-<div v-if="showBulkTagModal" @click.self="closeBulkTagModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-[100] p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-md max-h-[80vh] flex flex-col">
+<div v-if="showBulkTagModal" @click.self="closeBulkTagModal" class="modal-overlay">
+ <div class="modal-panel modal-panel--sm max-h-[80vh flex flex">
<div class="p-6 border-b border-[var(--border-primary)] flex-shrink-0">
<div class="flex items-center justify-between">
<div class="flex items-center gap-3">
diff --git a/templates/modals/customize-summary-prompt-modal.html b/templates/modals/customize-summary-prompt-modal.html
index fd1f1e91..3bf182dc 100644
--- a/templates/modals/customize-summary-prompt-modal.html
+++ b/templates/modals/customize-summary-prompt-modal.html
@@ -1,6 +1,6 @@
<!-- Customise Summary Prompt Modal -->
-<div v-if="showCustomizeSummaryModal" @click.self="closeCustomizeSummaryModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-2xl flex flex-col max-h-[85vh]">
+<div v-if="showCustomizeSummaryModal" @click.self="closeCustomizeSummaryModal" class="modal-overlay">
+ <div class="modal-panel modal-panel--lg flex flex max-h-[85vh">
<div class="p-5 border-b border-[var(--border-primary)] flex-shrink-0 flex justify-between items-center">
<div class="flex items-center gap-2">
<i class="fas fa-magic text-[var(--text-accent)]"></i>
diff --git a/templates/modals/datetime-picker-modal.html b/templates/modals/datetime-picker-modal.html
index da79bbfa..fb3c5aed 100644
--- a/templates/modals/datetime-picker-modal.html
+++ b/templates/modals/datetime-picker-modal.html
@@ -1,6 +1,6 @@
<!-- DateTime Picker Modal -->
-<div v-if="showDateTimePicker" @click.self="closeDateTimePicker" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-sm overflow-hidden">
+<div v-if="showDateTimePicker" @click.self="closeDateTimePicker" class="modal-overlay">
+ <div class="modal-panel modal-panel--xs overflow-hidden">
<!-- Header -->
<div class="p-4 border-b border-[var(--border-primary)] bg-[var(--bg-tertiary)]">
<div class="flex items-center justify-between">
diff --git a/templates/modals/duplicates-modal.html b/templates/modals/duplicates-modal.html
index fb035a1f..951efc6f 100644
--- a/templates/modals/duplicates-modal.html
+++ b/templates/modals/duplicates-modal.html
@@ -1,6 +1,6 @@
<!-- Duplicates List Modal -->
-<div v-if="showDuplicatesModal && duplicatesModalData" @click.self="showDuplicatesModal = false" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-sm">
+<div v-if="showDuplicatesModal && duplicatesModalData" @click.self="showDuplicatesModal = false" class="modal-overlay">
+ <div class="modal-panel modal-panel--xs">
<div class="p-5">
<div class="flex items-center justify-between mb-4">
<div class="flex items-center gap-2.5">
diff --git a/templates/modals/edit-modal.html b/templates/modals/edit-modal.html
index e9a53f47..9a083387 100644
--- a/templates/modals/edit-modal.html
+++ b/templates/modals/edit-modal.html
@@ -1,6 +1,6 @@
<!-- Edit Modal -->
-<div v-if="showEditModal" @click.self="cancelEdit" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-lg shadow-xl w-full max-w-lg">
+<div v-if="showEditModal" @click.self="cancelEdit" class="modal-overlay">
+ <div class="modal-panel modal-panel--md">
<div class="p-6 border-b border-[var(--border-primary)] flex items-center justify-between">
<h3 class="text-lg font-semibold" v-text="t('modal.editRecording')"></h3>
<button @click="cancelEdit" class="text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">
diff --git a/templates/modals/edit-participants-modal.html b/templates/modals/edit-participants-modal.html
index e38cd863..5617aba6 100644
--- a/templates/modals/edit-participants-modal.html
+++ b/templates/modals/edit-participants-modal.html
@@ -1,6 +1,6 @@
<!-- Edit Participants Modal -->
-<div v-if="showEditParticipantsModal" @click.self="closeEditParticipantsModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div @click="closeAllParticipantSuggestions" class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-md max-h-[80vh] flex flex-col">
+<div v-if="showEditParticipantsModal" @click.self="closeEditParticipantsModal" class="modal-overlay">
+ <div @click="closeAllParticipantSuggestions" class="modal-panel modal-panel--sm max-h-[80vh flex flex">
<div class="p-6 border-b border-[var(--border-primary)] flex-shrink-0">
<div class="flex items-center justify-between">
<h3 class="text-lg font-semibold" v-text="t('modal.editParticipants')"></h3>
diff --git a/templates/modals/edit-speakers-modal.html b/templates/modals/edit-speakers-modal.html
index 4a150c5b..7cb04e3e 100644
--- a/templates/modals/edit-speakers-modal.html
+++ b/templates/modals/edit-speakers-modal.html
@@ -1,6 +1,6 @@
<!-- Edit Speakers Modal -->
-<div v-if="showEditSpeakersModal" @click.self="closeEditSpeakersModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-md max-h-[80vh] flex flex-col">
+<div v-if="showEditSpeakersModal" @click.self="closeEditSpeakersModal" class="modal-overlay">
+ <div class="modal-panel modal-panel--sm max-h-[80vh flex flex">
<div class="p-6 border-b border-[var(--border-primary)] flex-shrink-0">
<div class="flex items-center justify-between">
<h3 class="text-lg font-semibold" v-text="t('modal.editSpeakers')"></h3>
diff --git a/templates/modals/edit-tags-modal.html b/templates/modals/edit-tags-modal.html
index b359596d..ebd50f39 100644
--- a/templates/modals/edit-tags-modal.html
+++ b/templates/modals/edit-tags-modal.html
@@ -1,6 +1,6 @@
<!-- Edit Tags Modal -->
-<div v-if="showEditTagsModal" @click.self="closeEditTagsModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-md max-h-[80vh] flex flex-col">
+<div v-if="showEditTagsModal" @click.self="closeEditTagsModal" class="modal-overlay">
+ <div class="modal-panel modal-panel--sm max-h-[80vh flex flex">
<div class="p-6 border-b border-[var(--border-primary)] flex-shrink-0">
<div class="flex items-center justify-between">
<h3 class="text-lg font-semibold" v-text="t('modal.editTags')"></h3>
diff --git a/templates/modals/edit-text-modal.html b/templates/modals/edit-text-modal.html
index e4bf55d6..b02bb384 100644
--- a/templates/modals/edit-text-modal.html
+++ b/templates/modals/edit-text-modal.html
@@ -1,6 +1,6 @@
<!-- Edit Text Modal -->
-<div v-if="showEditTextModal" @click.self="closeEditTextModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-2xl">
+<div v-if="showEditTextModal" @click.self="closeEditTextModal" class="modal-overlay">
+ <div class="modal-panel modal-panel--lg">
<div class="p-6 border-b border-[var(--border-primary)]">
<div class="flex items-center justify-between">
<h3 class="text-xl font-bold text-[var(--text-primary)]">Edit Transcript Text</h3>
diff --git a/templates/modals/reprocess-modal.html b/templates/modals/reprocess-modal.html
index b1272c9c..0be0ee71 100644
--- a/templates/modals/reprocess-modal.html
+++ b/templates/modals/reprocess-modal.html
@@ -1,6 +1,6 @@
<!-- Reprocess Modal -->
<div v-if="showReprocessModal" @click.self="cancelReprocess" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm transition-all duration-300 ease-in-out">
- <div class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-md max-h-[90vh] flex flex-col transform transition-all duration-300 ease-in-out">
+ <div class="modal-panel modal-panel--sm max-h-[90vh flex flex transform transition-all duration-300 ease-in-out">
<!-- Header with gradient background -->
<div class="bg-gradient-to-r from-[var(--bg-accent)] to-[var(--bg-secondary)] p-5 rounded-t-xl flex-shrink-0">
<div class="flex items-center justify-between">
diff --git a/templates/modals/share-modal.html b/templates/modals/share-modal.html
index 1a4b8cfa..95c10ff1 100644
--- a/templates/modals/share-modal.html
+++ b/templates/modals/share-modal.html
@@ -1,6 +1,6 @@
<!-- Share Modal -->
-<div v-if="showShareModal" @click.self="closeShareModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-lg shadow-xl w-full max-w-2xl max-h-[80vh] flex flex-col">
+<div v-if="showShareModal" @click.self="closeShareModal" class="modal-overlay">
+ <div class="modal-panel modal-panel--lg max-h-[80vh flex flex">
<div class="px-6 py-4 border-b border-[var(--border-primary)] flex justify-between items-center">
<h3 class="text-lg font-semibold" v-text="t('modal.shareRecording')"></h3>
<button @click="closeShareModal" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors">
diff --git a/templates/modals/shares-list-modal.html b/templates/modals/shares-list-modal.html
index b765e51c..d32dc430 100644
--- a/templates/modals/shares-list-modal.html
+++ b/templates/modals/shares-list-modal.html
@@ -1,6 +1,6 @@
<!-- Shares List Modal -->
-<div v-if="showSharesListModal" @click.self="closeSharesList" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-lg shadow-xl w-full max-w-2xl max-h-[80vh] flex flex-col">
+<div v-if="showSharesListModal" @click.self="closeSharesList" class="modal-overlay">
+ <div class="modal-panel modal-panel--lg max-h-[80vh flex flex">
<div class="p-6 border-b border-[var(--border-primary)] flex justify-between items-center">
<h3 class="text-lg font-semibold" v-text="t('modal.sharedTranscripts')"></h3>
<button @click="closeSharesList" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] transition-colors">
diff --git a/templates/modals/speaker-modal.html b/templates/modals/speaker-modal.html
index 02d1fe0b..94d3d03a 100644
--- a/templates/modals/speaker-modal.html
+++ b/templates/modals/speaker-modal.html
@@ -1,6 +1,6 @@
<!-- Speaker Identification Modal -->
<div v-if="showSpeakerModal" @click.self="closeSpeakerModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-2 sm:p-4 backdrop-blur-sm">
- <div @click="closeSpeakerSuggestionsOnClick" class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-4xl flex flex-col h-[95vh] sm:h-[85vh]">
+ <div @click="closeSpeakerSuggestionsOnClick" class="modal-panel modal-panel--xl flex flex">
<!-- Header -->
<div class="p-3 sm:p-5 border-b border-[var(--border-primary)] flex-shrink-0">
<div class="flex items-center justify-between">
diff --git a/templates/modals/text-editor-modal.html b/templates/modals/text-editor-modal.html
index 00d71b41..48b3f6be 100644
--- a/templates/modals/text-editor-modal.html
+++ b/templates/modals/text-editor-modal.html
@@ -1,6 +1,6 @@
<!-- Simple Transcription Editor Modal -->
-<div v-if="showTextEditorModal" @click.self="closeTextEditorModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-lg shadow-xl w-full max-w-2xl max-h-[90vh] flex flex-col">
+<div v-if="showTextEditorModal" @click.self="closeTextEditorModal" class="modal-overlay">
+ <div class="modal-panel modal-panel--lg max-h-[90vh flex flex">
<div class="p-6 border-b border-[var(--border-primary)]">
<div class="flex items-center justify-between">
<h3 class="text-lg font-semibold" v-text="t('modal.editTranscription')"></h3>
diff --git a/templates/modals/unified-share-modal.html b/templates/modals/unified-share-modal.html
index 769718a6..23f797b0 100644
--- a/templates/modals/unified-share-modal.html
+++ b/templates/modals/unified-share-modal.html
@@ -1,6 +1,6 @@
<!-- Unified Share Modal (Public + Internal Sharing) -->
-<div v-if="showUnifiedShareModal" @click.self="closeUnifiedShareModal" class="fixed inset-0 bg-black bg-opacity-70 flex items-center justify-center z-50 p-4 backdrop-blur-sm">
- <div class="bg-[var(--bg-secondary)] rounded-xl shadow-2xl w-full max-w-2xl max-h-[90vh] flex flex-col">
+<div v-if="showUnifiedShareModal" @click.self="closeUnifiedShareModal" class="modal-overlay">
+ <div class="modal-panel modal-panel--lg max-h-[90vh flex flex">
<div class="px-6 py-4 border-b border-[var(--border-primary)] flex-shrink-0">
<div class="flex items-center justify-between">
<div class="flex-1">