Skip to content

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

Python

Migrate group/admin/account/inquire modals to design-system header/body/footer structure (fix flush-content regression)

Murtaza Nasirbcfec4dd2ce9
diff --git a/templates/account.html b/templates/account.html
index 5192984f..8864bd28 100644
--- a/templates/account.html
+++ b/templates/account.html
@@ -2529,45 +2529,46 @@ curl "https://your-speakr-instance.com/api/recordings?token=YOUR_TOKEN_HERE"</co
<!-- Create API Token Modal -->
<div id="createTokenModal" class="modal-overlay hidden">
<div class="modal-panel modal-panel--sm">
- <div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">
- <i class="fas fa-key mr-2 text-[var(--text-accent)]"></i>Create API Token
- </h3>
- <button id="closeCreateTokenModal" class="text-[var(--text-light)] hover:text-[var(--text-muted)] text-2xl leading-none">&times;</button>
+ <div class="modal-header">
+ <i class="fas fa-key text-[var(--text-accent)]"></i>
+ <h3 class="modal-title">Create API Token</h3>
+ <button id="closeCreateTokenModal" class="modal-close" title="Close"><i class="fas fa-times"></i></button>
</div>
- <form id="createTokenForm" class="space-y-4">
- <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
+ <form id="createTokenForm" class="contents">
+ <div class="modal-body">
+ <input type="hidden" name="csrf_token" value="{{ csrf_token() }}"/>
- <div>
- <label for="tokenNameInput" class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Token Name *</label>
- <input type="text" id="tokenNameInput" name="name" required maxlength="100" class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]" placeholder="e.g., n8n automation, CLI access">
- <p class="text-xs text-[var(--text-light)] mt-1">A descriptive name to help you identify this token</p>
- </div>
+ <div>
+ <label for="tokenNameInput" class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Token Name *</label>
+ <input type="text" id="tokenNameInput" name="name" required maxlength="100" class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]" placeholder="e.g., n8n automation, CLI access">
+ <p class="text-xs text-[var(--text-light)] mt-1">A descriptive name to help you identify this token</p>
+ </div>
- <div>
- <label for="tokenExpirationSelect" class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Expiration</label>
- <select id="tokenExpirationSelect" name="expires_in_days" class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
- <option value="0">Never expires</option>
- <option value="7">7 days</option>
- <option value="30">30 days</option>
- <option value="90">90 days</option>
- <option value="365">1 year</option>
- </select>
- <p class="text-xs text-[var(--text-light)] mt-1">When this token should expire</p>
- </div>
+ <div>
+ <label for="tokenExpirationSelect" class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Expiration</label>
+ <select id="tokenExpirationSelect" name="expires_in_days" class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
+ <option value="0">Never expires</option>
+ <option value="7">7 days</option>
+ <option value="30">30 days</option>
+ <option value="90">90 days</option>
+ <option value="365">1 year</option>
+ </select>
+ <p class="text-xs text-[var(--text-light)] mt-1">When this token should expire</p>
+ </div>
- <div class="bg-amber-50 border border-amber-200 rounded-lg p-3">
- <div class="flex">
- <i class="fas fa-info-circle text-amber-500 mr-2 mt-0.5"></i>
- <p class="text-xs text-amber-700">
- The token will only be shown once after creation. Make sure to copy and save it securely.
- </p>
+ <div class="bg-amber-50 border border-amber-200 rounded-lg p-3">
+ <div class="flex">
+ <i class="fas fa-info-circle text-amber-500 mr-2 mt-0.5"></i>
+ <p class="text-xs text-amber-700">
+ The token will only be shown once after creation. Make sure to copy and save it securely.
+ </p>
+ </div>
</div>
</div>
- <div class="flex justify-end space-x-3 pt-2">
- <button type="button" id="cancelCreateTokenBtn" class="px-4 py-2 bg-[var(--bg-tertiary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--border-secondary)]">Cancel</button>
+ <div class="modal-footer">
+ <button type="button" id="cancelCreateTokenBtn" class="btn btn--ghost">Cancel</button>
<button type="submit" id="submitCreateTokenBtn" class="btn btn--primary">
<i class="fas fa-plus mr-2"></i>Create Token
</button>
@@ -2579,42 +2580,43 @@ curl "https://your-speakr-instance.com/api/recordings?token=YOUR_TOKEN_HERE"</co
<!-- Token Secret Modal (shown after creation) -->
<div id="tokenSecretModal" class="modal-overlay hidden">
<div class="modal-panel modal-panel--sm">
- <div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">
- <i class="fas fa-check-circle mr-2 text-green-500"></i>Token Created!
- </h3>
+ <div class="modal-header">
+ <i class="fas fa-check-circle text-green-500"></i>
+ <h3 class="modal-title">Token Created!</h3>
</div>
- <div class="space-y-4">
- <div class="bg-red-50 border border-red-200 rounded-lg p-3">
- <div class="flex">
- <i class="fas fa-exclamation-triangle text-[var(--text-danger)] mr-2 mt-0.5"></i>
- <p class="text-xs text-[var(--text-danger-strong)]">
- <strong>Important!</strong> This is the only time you'll see this token. Copy it now and store it securely.
- </p>
+ <div class="modal-body">
+ <div class="space-y-4">
+ <div class="bg-red-50 border border-red-200 rounded-lg p-3">
+ <div class="flex">
+ <i class="fas fa-exclamation-triangle text-[var(--text-danger)] mr-2 mt-0.5"></i>
+ <p class="text-xs text-[var(--text-danger-strong)]">
+ <strong>Important!</strong> This is the only time you'll see this token. Copy it now and store it securely.
+ </p>
+ </div>
</div>
- </div>
- <div>
- <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Your API Token</label>
- <div class="relative">
- <input type="text" id="newTokenValue" readonly class="w-full px-3 py-2 pr-12 border border-[var(--border-secondary)] rounded-md bg-[var(--bg-tertiary)] text-[var(--text-primary)] font-mono text-sm">
- <button type="button" id="copyTokenBtn" class="absolute right-2 top-1/2 transform -translate-y-1/2 px-3 py-1.5 hover:bg-[var(--bg-tertiary)] rounded-md transition-all duration-200 flex items-center gap-1.5 border border-transparent hover:border-[var(--border-secondary)]" title="Copy to clipboard">
- <i id="copyTokenIcon" class="fas fa-copy text-[var(--text-muted)]"></i>
- <span id="copyTokenText" class="text-xs text-[var(--text-muted)] hidden">Copied!</span>
- </button>
+ <div>
+ <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Your API Token</label>
+ <div class="relative">
+ <input type="text" id="newTokenValue" readonly class="w-full px-3 py-2 pr-12 border border-[var(--border-secondary)] rounded-md bg-[var(--bg-tertiary)] text-[var(--text-primary)] font-mono text-sm">
+ <button type="button" id="copyTokenBtn" class="absolute right-2 top-1/2 transform -translate-y-1/2 px-3 py-1.5 hover:bg-[var(--bg-tertiary)] rounded-md transition-all duration-200 flex items-center gap-1.5 border border-transparent hover:border-[var(--border-secondary)]" title="Copy to clipboard">
+ <i id="copyTokenIcon" class="fas fa-copy text-[var(--text-muted)]"></i>
+ <span id="copyTokenText" class="text-xs text-[var(--text-muted)] hidden">Copied!</span>
+ </button>
+ </div>
</div>
- </div>
- <div id="newTokenInfo" class="space-y-2 text-sm">
- <!-- Populated dynamically -->
+ <div id="newTokenInfo" class="space-y-2 text-sm">
+ <!-- Populated dynamically -->
+ </div>
</div>
+ </div>
- <div class="flex justify-end pt-2">
- <button type="button" id="closeTokenSecretModal" class="px-4 py-2 bg-green-600 text-white rounded-md hover:bg-green-700">
- <i class="fas fa-check mr-2"></i>I've Saved My Token
- </button>
- </div>
+ <div class="modal-footer">
+ <button type="button" id="closeTokenSecretModal" class="btn btn--primary">
+ <i class="fas fa-check mr-2"></i>I've Saved My Token
+ </button>
</div>
</div>
</div>
diff --git a/templates/admin.html b/templates/admin.html
index 47b93bd0..7c47a9a0 100644
--- a/templates/admin.html
+++ b/templates/admin.html
@@ -1312,11 +1312,12 @@ Summarization Instructions:
<!-- Add User Modal -->
<div v-if="showAddUserModal" @click.self="showAddUserModal = false" class="modal-overlay">
<div class="modal-panel modal-panel--sm">
- <div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">${t('adminDashboard.addNewUser')}</h3>
- <button @click="showAddUserModal = false" class="text-[var(--text-muted)] hover:text-[var(--text-secondary)]">&times;</button>
+ <div class="modal-header">
+ <h3 class="modal-title">${t('adminDashboard.addNewUser')}</h3>
+ <button @click="showAddUserModal = false" class="modal-close" title="Close"><i class="fas fa-times"></i></button>
</div>
- <form @submit.prevent="addUser">
+ <form @submit.prevent="addUser" class="contents">
+ <div class="modal-body">
<div class="mb-4">
<label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">${t('adminDashboard.usernameLabel')}</label>
<input v-model="newUser.username" type="text" required class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
@@ -1350,8 +1351,9 @@ Summarization Instructions:
<input v-model.number="newUser.monthlyTranscriptionBudgetMinutes" type="number" min="10" step="10" :placeholder="t('adminDashboard.transcriptionBudgetPlaceholder')" class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
<p class="text-xs text-[var(--text-muted)] mt-1">${t('adminDashboard.transcriptionBudgetHelp')}</p>
</div>
- <div class="flex justify-end space-x-3">
- <button type="button" @click="showAddUserModal = false" class="px-4 py-2 border border-[var(--border-secondary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--bg-tertiary)]">${t('buttons.cancel')}</button>
+ </div>
+ <div class="modal-footer">
+ <button type="button" @click="showAddUserModal = false" class="btn btn--ghost">${t('buttons.cancel')}</button>
<button type="submit" class="btn btn--primary">${t('adminDashboard.addUser')}</button>
</div>
</form>
@@ -1361,11 +1363,12 @@ Summarization Instructions:
<!-- Edit User Modal -->
<div v-if="showEditUserModal" @click.self="showEditUserModal = false" class="modal-overlay">
<div class="modal-panel modal-panel--sm">
- <div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">${t('adminDashboard.editUser')}</h3>
- <button @click="showEditUserModal = false" class="text-[var(--text-muted)] hover:text-[var(--text-secondary)]">&times;</button>
+ <div class="modal-header">
+ <h3 class="modal-title">${t('adminDashboard.editUser')}</h3>
+ <button @click="showEditUserModal = false" class="modal-close" title="Close"><i class="fas fa-times"></i></button>
</div>
- <form @submit.prevent="updateUser">
+ <form @submit.prevent="updateUser" class="contents">
+ <div class="modal-body">
<div class="mb-4">
<label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">${t('adminDashboard.usernameLabel')}</label>
<input v-model="editingUser.username" type="text" required class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
@@ -1413,8 +1416,9 @@ Summarization Instructions:
</div>
</div>
</div>
- <div class="flex justify-end space-x-3">
- <button type="button" @click="showEditUserModal = false" class="px-4 py-2 border border-[var(--border-secondary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--bg-tertiary)]">Cancel</button>
+ </div>
+ <div class="modal-footer">
+ <button type="button" @click="showEditUserModal = false" class="btn btn--ghost">Cancel</button>
<button type="submit" class="btn btn--primary">${t('adminDashboard.updateUser')}</button>
</div>
</form>
@@ -1424,27 +1428,29 @@ Summarization Instructions:
<!-- Delete User Confirmation Modal -->
<div v-if="showDeleteUserModal" @click.self="showDeleteUserModal = false" class="modal-overlay">
<div class="modal-panel modal-panel--sm">
- <div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">Confirm Delete</h3>
- <button @click="showDeleteUserModal = false" class="text-[var(--text-muted)] hover:text-[var(--text-secondary)]">&times;</button>
+ <div class="modal-header">
+ <h3 class="modal-title">Confirm Delete</h3>
+ <button @click="showDeleteUserModal = false" class="modal-close" title="Close"><i class="fas fa-times"></i></button>
+ </div>
+ <div class="modal-body">
+ <p class="text-[var(--text-secondary)]">Are you sure you want to delete the user <span class="font-semibold">${ userToDelete?.username }</span>? This action cannot be undone.</p>
</div>
- <p class="mb-4 text-[var(--text-secondary)]">Are you sure you want to delete the user <span class="font-semibold">${ userToDelete?.username }</span>? This action cannot be undone.</p>
- <div class="flex justify-end space-x-3">
- <button @click="showDeleteUserModal = false" class="px-4 py-2 border border-[var(--border-secondary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--bg-tertiary)]">Cancel</button>
- <button @click="deleteUser" class="px-4 py-2 bg-[var(--bg-danger)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-danger-hover)]">Delete User</button>
+ <div class="modal-footer">
+ <button @click="showDeleteUserModal = false" class="btn btn--ghost">Cancel</button>
+ <button @click="deleteUser" class="btn btn--danger">Delete User</button>
</div>
</div>
</div>
<!-- Edit System Setting Modal -->
<div v-if="showEditSettingModal" class="modal-overlay">
- <div class="modal-panel modal-panel--md max-h-[85vh flex flex overflow-hidden">
- <div class="flex-shrink-0 flex justify-between items-center p-6 pb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">Edit System Setting</h3>
- <button @click="showEditSettingModal = false" class="text-[var(--text-muted)] hover:text-[var(--text-secondary)] text-2xl leading-none">&times;</button>
+ <div class="modal-panel modal-panel--md">
+ <div class="modal-header">
+ <h3 class="modal-title">Edit System Setting</h3>
+ <button @click="showEditSettingModal = false" class="modal-close" title="Close"><i class="fas fa-times"></i></button>
</div>
- <div v-if="editingSetting" class="flex-1 overflow-y-auto px-6 pb-6 space-y-4">
+ <div v-if="editingSetting" class="modal-body space-y-4">
<div>
<label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Setting Key</label>
<div class="px-3 py-2 bg-[var(--bg-tertiary)] text-[var(--text-muted)] rounded-md font-mono text-sm">
@@ -1561,9 +1567,9 @@ Summarization Instructions:
</div>
</div>
- <div class="flex-shrink-0 flex justify-end space-x-3 p-6 border-t border-[var(--border-primary)] bg-[var(--bg-tertiary)] rounded-b-lg">
+ <div class="modal-footer">
<button @click="showEditSettingModal = false"
- class="px-4 py-2 border border-[var(--border-secondary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--bg-tertiary)]">
+ class="btn btn--ghost">
Cancel
</button>
<button @click="saveSettingValue"
@@ -1577,11 +1583,12 @@ Summarization Instructions:
<!-- Create/Edit Group Modal -->
<div v-if="showTeamModal" @click.self="closeTeamModal" class="modal-overlay">
<div class="modal-panel modal-panel--sm">
- <div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">${ editingTeam ? 'Edit Group' : 'Create Group' }</h3>
- <button @click="closeTeamModal" class="text-[var(--text-muted)] hover:text-[var(--text-secondary)]">&times;</button>
+ <div class="modal-header">
+ <h3 class="modal-title">${ editingTeam ? 'Edit Group' : 'Create Group' }</h3>
+ <button @click="closeTeamModal" class="modal-close" title="Close"><i class="fas fa-times"></i></button>
</div>
- <form @submit.prevent="saveTeam">
+ <form @submit.prevent="saveTeam" class="contents">
+ <div class="modal-body">
<div class="space-y-4">
<div>
<label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Group Name *</label>
@@ -1599,9 +1606,10 @@ Summarization Instructions:
${ teamError }
</div>
</div>
- <div class="flex justify-end space-x-3 mt-6">
+ </div>
+ <div class="modal-footer">
<button type="button" @click="closeTeamModal"
- class="px-4 py-2 border border-[var(--border-secondary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--bg-tertiary)]">
+ class="btn btn--ghost">
Cancel
</button>
<button type="submit"
@@ -1615,11 +1623,12 @@ Summarization Instructions:
<!-- Manage Group Members Modal -->
<div v-if="showManageTeamModal" @click.self="closeManageTeamModal" class="modal-overlay">
- <div class="modal-panel modal-panel--lg max-h-[90vh overflow-y-auto">
- <div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">Manage Group: ${ currentTeam?.name }</h3>
- <button @click="closeManageTeamModal" class="text-[var(--text-muted)] hover:text-[var(--text-secondary)]">&times;</button>
+ <div class="modal-panel modal-panel--lg">
+ <div class="modal-header">
+ <h3 class="modal-title">Manage Group: ${ currentTeam?.name }</h3>
+ <button @click="closeManageTeamModal" class="modal-close" title="Close"><i class="fas fa-times"></i></button>
</div>
+ <div class="modal-body">
<!-- Add Member Section -->
<div class="mb-6 p-4 bg-[var(--bg-tertiary)] rounded-lg">
@@ -1682,8 +1691,9 @@ Summarization Instructions:
<div v-if="teamMemberError" class="mt-4 p-3 bg-[var(--bg-danger-light)] text-[var(--text-danger-strong)] rounded-md text-sm">
${ teamMemberError }
</div>
+ </div>
- <div class="flex justify-between mt-6">
+ <div class="modal-footer modal-footer--between">
<button @click="syncTeamShares"
class="btn btn--primary">
<i class="fas fa-sync-alt"></i>
@@ -1700,19 +1710,21 @@ Summarization Instructions:
<!-- Sync Group Shares Confirmation Modal -->
<div v-if="showSyncSharesModal" @click.self="showSyncSharesModal = false" class="modal-overlay">
<div class="modal-panel modal-panel--sm">
- <div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">Sync Group Shares</h3>
- <button @click="showSyncSharesModal = false" class="text-[var(--text-muted)] hover:text-[var(--text-secondary)]">&times;</button>
+ <div class="modal-header">
+ <h3 class="modal-title">Sync Group Shares</h3>
+ <button @click="showSyncSharesModal = false" class="modal-close" title="Close"><i class="fas fa-times"></i></button>
</div>
+ <div class="modal-body">
<p class="mb-4 text-[var(--text-secondary)]">
This will create shares for all recordings with group tags that have auto-sharing enabled.
</p>
- <p class="mb-4 text-[var(--text-muted)] text-sm">
+ <p class="text-[var(--text-muted)] text-sm">
<i class="fas fa-info-circle mr-1"></i>
Only missing shares will be created - existing shares won't be duplicated.
</p>
- <div class="flex justify-end space-x-3">
- <button @click="showSyncSharesModal = false" class="px-4 py-2 border border-[var(--border-secondary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--bg-tertiary)]">Cancel</button>
+ </div>
+ <div class="modal-footer">
+ <button @click="showSyncSharesModal = false" class="btn btn--ghost">Cancel</button>
<button @click="confirmSyncShares" class="btn btn--primary">
<i class="fas fa-sync-alt mr-2"></i>Sync Now
</button>
@@ -1723,13 +1735,13 @@ Summarization Instructions:
<!-- Sync Results Modal -->
<div v-if="showSyncResultsModal" @click.self="showSyncResultsModal = false" class="modal-overlay">
<div class="modal-panel modal-panel--sm">
- <div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">
- <i class="fas fa-check-circle text-green-500 mr-2"></i>Sync Complete
- </h3>
- <button @click="showSyncResultsModal = false" class="text-[var(--text-muted)] hover:text-[var(--text-secondary)]">&times;</button>
+ <div class="modal-header">
+ <i class="fas fa-check-circle text-green-500"></i>
+ <h3 class="modal-title">Sync Complete</h3>
+ <button @click="showSyncResultsModal = false" class="modal-close" title="Close"><i class="fas fa-times"></i></button>
</div>
- <div class="mb-4 space-y-2">
+ <div class="modal-body">
+ <div class="space-y-2">
<div class="flex justify-between text-[var(--text-secondary)]">
<span>Shares created:</span>
<span class="font-semibold">${ syncResults.shares_created }</span>
@@ -1739,7 +1751,8 @@ Summarization Instructions:
<span class="font-semibold">${ syncResults.recordings_processed }</span>
</div>
</div>
- <div class="flex justify-end">
+ </div>
+ <div class="modal-footer">
<button @click="showSyncResultsModal = false" class="btn btn--primary">
Done
</button>
@@ -1750,25 +1763,28 @@ Summarization Instructions:
<!-- Delete Group Confirmation Modal -->
<div v-if="showDeleteTeamModal" @click.self="showDeleteTeamModal = false" class="modal-overlay">
<div class="modal-panel modal-panel--sm">
- <div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">Delete Group</h3>
- <button @click="showDeleteTeamModal = false" class="text-[var(--text-muted)] hover:text-[var(--text-secondary)]">&times;</button>
+ <div class="modal-header">
+ <h3 class="modal-title">Delete Group</h3>
+ <button @click="showDeleteTeamModal = false" class="modal-close" title="Close"><i class="fas fa-times"></i></button>
</div>
- <p class="mb-4 text-[var(--text-secondary)]">Are you sure you want to delete the group <span class="font-semibold">${ teamToDelete?.name }</span>? This will remove all members from the group. This action cannot be undone.</p>
- <div class="flex justify-end space-x-3">
- <button @click="showDeleteTeamModal = false" class="px-4 py-2 border border-[var(--border-secondary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--bg-tertiary)]">Cancel</button>
- <button @click="deleteTeam" class="px-4 py-2 bg-[var(--bg-danger)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-danger-hover)]">Delete Group</button>
+ <div class="modal-body">
+ <p class="text-[var(--text-secondary)]">Are you sure you want to delete the group <span class="font-semibold">${ teamToDelete?.name }</span>? This will remove all members from the group. This action cannot be undone.</p>
+ </div>
+ <div class="modal-footer">
+ <button @click="showDeleteTeamModal = false" class="btn btn--ghost">Cancel</button>
+ <button @click="deleteTeam" class="btn btn--danger">Delete Group</button>
</div>
</div>
</div>
<!-- Manage Group Tags Modal -->
<div v-if="showManageTeamTagsModal" @click.self="closeManageTeamTagsModal" class="modal-overlay">
- <div class="modal-panel modal-panel--lg max-h-[90vh overflow-y-auto">
- <div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">Manage Tags for ${ currentTeam?.name }</h3>
- <button @click="closeManageTeamTagsModal" class="text-[var(--text-muted)] hover:text-[var(--text-secondary)]">&times;</button>
+ <div class="modal-panel modal-panel--lg">
+ <div class="modal-header">
+ <h3 class="modal-title">Manage Tags for ${ currentTeam?.name }</h3>
+ <button @click="closeManageTeamTagsModal" class="modal-close" title="Close"><i class="fas fa-times"></i></button>
</div>
+ <div class="modal-body">
<!-- Create/Edit Tag Form -->
<div class="bg-[var(--bg-tertiary)] p-4 rounded-lg mb-4 border border-[var(--border-primary)]">
@@ -1942,6 +1958,7 @@ Summarization Instructions:
<p class="text-sm">No group tags created yet</p>
</div>
</div>
+ </div>
</div>
</div>
</div>
diff --git a/templates/group-admin.html b/templates/group-admin.html
index 95d5c5fd..a730e331 100644
--- a/templates/group-admin.html
+++ b/templates/group-admin.html
@@ -246,200 +246,186 @@
Speakr &copy; {{ now.year }}
</footer>
<!-- Create/Edit Group Modal -->
- <div v-if="showTeamModal" @click.self="closeTeamModal" class="fixed inset-0 bg-black bg-opacity-70 backdrop-blur-sm flex items-center justify-center z-50 p-4">
- <div class="bg-[var(--bg-secondary)] p-6 rounded-lg shadow-xl w-full max-w-md">
- <div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">${ editingTeam ? 'Edit Group' : 'Create Group' }</h3>
- <button @click="closeTeamModal" class="text-[var(--text-muted)] hover:text-[var(--text-secondary)]">&times;</button>
+ <div v-if="showTeamModal" @click.self="closeTeamModal" class="modal-overlay">
+ <div class="modal-panel modal-panel--sm">
+ <div class="modal-header">
+ <h3 class="modal-title">${ editingTeam ? 'Edit Group' : 'Create Group' }</h3>
+ <button @click="closeTeamModal" class="modal-close" title="Close"><i class="fas fa-times"></i></button>
</div>
- <form @submit.prevent="saveTeam">
- <div class="space-y-4">
- <div>
- <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Group Name *</label>
- <input v-model="teamForm.name" type="text" required
- class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]"
- placeholder="Enter group name">
- </div>
- <div>
- <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Description</label>
- <textarea v-model="teamForm.description" rows="3"
- class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]"
- placeholder="Optional description"></textarea>
- </div>
- <div v-if="teamError" class="p-3 bg-[var(--bg-danger-light)] text-[var(--text-danger-strong)] rounded-md text-sm">
- ${ teamError }
+ <form @submit.prevent="saveTeam" class="contents">
+ <div class="modal-body">
+ <div class="space-y-4">
+ <div>
+ <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Group Name *</label>
+ <input v-model="teamForm.name" type="text" required class="field w-full" placeholder="Enter group name">
+ </div>
+ <div>
+ <label class="block text-sm font-medium text-[var(--text-secondary)] mb-1">Description</label>
+ <textarea v-model="teamForm.description" rows="3" class="field w-full" placeholder="Optional description"></textarea>
+ </div>
+ <div v-if="teamError" class="p-3 bg-[var(--bg-danger-light)] text-[var(--text-danger-strong)] rounded-md text-sm">
+ ${ teamError }
+ </div>
</div>
</div>
- <div class="flex justify-end space-x-3 mt-6">
- <button type="button" @click="closeTeamModal"
- class="px-4 py-2 border border-[var(--border-secondary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--bg-tertiary)]">
- Cancel
- </button>
- <button type="submit"
- class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)]">
- ${ editingTeam ? 'Update Group' : 'Create Group' }
- </button>
+ <div class="modal-footer">
+ <button type="button" @click="closeTeamModal" class="btn btn--ghost">Cancel</button>
+ <button type="submit" class="btn btn--primary">${ editingTeam ? 'Update Group' : 'Create Group' }</button>
</div>
</form>
</div>
</div>
<!-- Manage Group Members Modal -->
- <div v-if="showManageTeamModal" @click.self="closeManageTeamModal" class="fixed inset-0 bg-black bg-opacity-70 backdrop-blur-sm flex items-center justify-center z-50 p-4">
- <div class="bg-[var(--bg-secondary)] p-6 rounded-lg shadow-xl w-full max-w-2xl max-h-[90vh] overflow-y-auto">
- <div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">Manage Group: ${ currentTeam?.name }</h3>
- <button @click="closeManageTeamModal" class="text-[var(--text-muted)] hover:text-[var(--text-secondary)]">&times;</button>
+ <div v-if="showManageTeamModal" @click.self="closeManageTeamModal" class="modal-overlay">
+ <div class="modal-panel modal-panel--lg">
+ <div class="modal-header">
+ <h3 class="modal-title">Manage Group: ${ currentTeam?.name }</h3>
+ <button @click="closeManageTeamModal" class="modal-close" title="Close"><i class="fas fa-times"></i></button>
</div>
- <!-- Add Member Section -->
- <div class="mb-6 p-4 bg-[var(--bg-tertiary)] rounded-lg">
- <h4 class="text-sm font-medium text-[var(--text-secondary)] mb-3">Add Member</h4>
- <div class="flex space-x-2">
- <div class="flex-1">
- <select v-model="newMemberUserId"
- class="w-full px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
- <option value="">Select a user...</option>
- <option v-for="user in availableUsers" :key="user.id" :value="user.id">
- ${ user.username } (${ user.email })
- </option>
- </select>
- </div>
- <div>
- <select v-model="newMemberRole"
- class="px-3 py-2 border border-[var(--border-secondary)] rounded-md focus:outline-none focus:ring-2 focus:ring-[var(--border-focus)] bg-[var(--bg-input)] text-[var(--text-primary)]">
- <option value="member">Member</option>
- <option value="admin">Admin</option>
- </select>
- </div>
- <button @click="addTeamMember" :disabled="!newMemberUserId"
- class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)] disabled:opacity-50 disabled:cursor-not-allowed">
- <i class="fas fa-plus"></i> Add
- </button>
- </div>
- </div>
-
- <!-- Current Members -->
- <div>
- <h4 class="text-sm font-medium text-[var(--text-secondary)] mb-3">Current Members (${ teamMembers.length })</h4>
- <div v-if="teamMembers.length > 0" class="space-y-2">
- <div v-for="member in teamMembers" :key="member.user_id"
- class="flex items-center justify-between p-3 bg-[var(--bg-tertiary)] rounded-md">
- <div class="flex items-center space-x-3">
- <i class="fas fa-user text-[var(--text-muted)]"></i>
- <div>
- <div class="text-sm font-medium text-[var(--text-primary)]">${ member.username }</div>
- <div class="text-xs text-[var(--text-muted)]">${ member.email }</div>
- </div>
+ <div class="modal-body">
+ <!-- Add Member Section -->
+ <div class="mb-6 p-4 bg-[var(--bg-tertiary)] rounded-lg">
+ <h4 class="text-sm font-medium text-[var(--text-secondary)] mb-3">Add Member</h4>
+ <div class="flex space-x-2">
+ <div class="flex-1">
+ <select v-model="newMemberUserId" class="field w-full">
+ <option value="">Select a user...</option>
+ <option v-for="user in availableUsers" :key="user.id" :value="user.id">
+ ${ user.username } (${ user.email })
+ </option>
+ </select>
</div>
- <div class="flex items-center space-x-2">
- <select v-model="member.role" @change="updateMemberRole(member)"
- class="px-2 py-1 text-sm border border-[var(--border-secondary)] rounded bg-[var(--bg-input)] text-[var(--text-primary)]">
+ <div>
+ <select v-model="newMemberRole" class="field">
<option value="member">Member</option>
<option value="admin">Admin</option>
</select>
- <button @click="removeTeamMember(member)"
- class="text-red-500 hover:text-red-700" title="Remove from group">
- <i class="fas fa-times"></i>
- </button>
</div>
+ <button @click="addTeamMember" :disabled="!newMemberUserId" class="btn btn--primary">
+ <i class="fas fa-plus"></i> Add
+ </button>
</div>
</div>
- <div v-else class="text-center py-4 text-[var(--text-muted)]">
- No members yet
+
+ <!-- Current Members -->
+ <div>
+ <h4 class="text-sm font-medium text-[var(--text-secondary)] mb-3">Current Members (${ teamMembers.length })</h4>
+ <div v-if="teamMembers.length > 0" class="space-y-2">
+ <div v-for="member in teamMembers" :key="member.user_id"
+ class="flex items-center justify-between p-3 bg-[var(--bg-tertiary)] rounded-md">
+ <div class="flex items-center space-x-3">
+ <i class="fas fa-user text-[var(--text-muted)]"></i>
+ <div>
+ <div class="text-sm font-medium text-[var(--text-primary)]">${ member.username }</div>
+ <div class="text-xs text-[var(--text-muted)]">${ member.email }</div>
+ </div>
+ </div>
+ <div class="flex items-center space-x-2">
+ <select v-model="member.role" @change="updateMemberRole(member)" class="field field--sm">
+ <option value="member">Member</option>
+ <option value="admin">Admin</option>
+ </select>
+ <button @click="removeTeamMember(member)" class="btn btn--icon btn--danger btn--sm" title="Remove from group">
+ <i class="fas fa-times"></i>
+ </button>
+ </div>
+ </div>
+ </div>
+ <div v-else class="text-center py-4 text-[var(--text-muted)]">
+ No members yet
+ </div>
</div>
- </div>
- <div v-if="teamMemberError" class="mt-4 p-3 bg-[var(--bg-danger-light)] text-[var(--text-danger-strong)] rounded-md text-sm">
- ${ teamMemberError }
+ <div v-if="teamMemberError" class="mt-4 p-3 bg-[var(--bg-danger-light)] text-[var(--text-danger-strong)] rounded-md text-sm">
+ ${ teamMemberError }
+ </div>
</div>
- <div class="flex justify-between mt-6">
- <button @click="syncTeamShares"
- class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700 flex items-center gap-2">
- <i class="fas fa-sync-alt"></i>
- Sync Group Shares
- </button>
- <button @click="closeManageTeamModal"
- class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)]">
- Done
+ <div class="modal-footer modal-footer--between">
+ <button @click="syncTeamShares" class="btn btn--primary">
+ <i class="fas fa-sync-alt"></i> Sync Group Shares
</button>
+ <button @click="closeManageTeamModal" class="btn btn--ghost">Done</button>
</div>
</div>
</div>
<!-- Sync Group Shares Confirmation Modal -->
- <div v-if="showSyncSharesModal" @click.self="showSyncSharesModal = false" class="fixed inset-0 bg-black bg-opacity-70 backdrop-blur-sm flex items-center justify-center z-50 p-4">
- <div class="bg-[var(--bg-secondary)] p-6 rounded-lg shadow-xl w-full max-w-md">
- <div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">Sync Group Shares</h3>
- <button @click="showSyncSharesModal = false" class="text-[var(--text-muted)] hover:text-[var(--text-secondary)]">&times;</button>
+ <div v-if="showSyncSharesModal" @click.self="showSyncSharesModal = false" class="modal-overlay">
+ <div class="modal-panel modal-panel--sm">
+ <div class="modal-header">
+ <h3 class="modal-title">Sync Group Shares</h3>
+ <button @click="showSyncSharesModal = false" class="modal-close" title="Close"><i class="fas fa-times"></i></button>
</div>
- <p class="mb-4 text-[var(--text-secondary)]">
- This will create shares for all recordings with group tags that have auto-sharing enabled.
- </p>
- <p class="mb-4 text-[var(--text-muted)] text-sm">
- <i class="fas fa-info-circle mr-1"></i>
- Only missing shares will be created - existing shares won't be duplicated.
- </p>
- <div class="flex justify-end space-x-3">
- <button @click="showSyncSharesModal = false" class="px-4 py-2 border border-[var(--border-secondary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--bg-tertiary)]">Cancel</button>
- <button @click="confirmSyncShares" class="px-4 py-2 bg-blue-600 text-white rounded-md hover:bg-blue-700">
- <i class="fas fa-sync-alt mr-2"></i>Sync Now
- </button>
+ <div class="modal-body">
+ <p class="mb-4 text-[var(--text-secondary)]">
+ This will create shares for all recordings with group tags that have auto-sharing enabled.
+ </p>
+ <p class="text-[var(--text-muted)] text-sm">
+ <i class="fas fa-info-circle mr-1"></i>
+ Only missing shares will be created - existing shares won't be duplicated.
+ </p>
+ </div>
+ <div class="modal-footer">
+ <button @click="showSyncSharesModal = false" class="btn btn--ghost">Cancel</button>
+ <button @click="confirmSyncShares" class="btn btn--primary"><i class="fas fa-sync-alt"></i> Sync Now</button>
</div>
</div>
</div>
<!-- Sync Results Modal -->
- <div v-if="showSyncResultsModal" @click.self="showSyncResultsModal = false" class="fixed inset-0 bg-black bg-opacity-70 backdrop-blur-sm flex items-center justify-center z-50 p-4">
- <div class="bg-[var(--bg-secondary)] p-6 rounded-lg shadow-xl w-full max-w-md">
- <div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">
- <i class="fas fa-check-circle text-green-500 mr-2"></i>Sync Complete
- </h3>
- <button @click="showSyncResultsModal = false" class="text-[var(--text-muted)] hover:text-[var(--text-secondary)]">&times;</button>
+ <div v-if="showSyncResultsModal" @click.self="showSyncResultsModal = false" class="modal-overlay">
+ <div class="modal-panel modal-panel--sm">
+ <div class="modal-header">
+ <i class="fas fa-check-circle text-green-500"></i>
+ <h3 class="modal-title">Sync Complete</h3>
+ <button @click="showSyncResultsModal = false" class="modal-close" title="Close"><i class="fas fa-times"></i></button>
</div>
- <div class="mb-4 space-y-2">
- <div class="flex justify-between text-[var(--text-secondary)]">
- <span>Shares created:</span>
- <span class="font-semibold">${ syncResults.shares_created }</span>
- </div>
- <div class="flex justify-between text-[var(--text-secondary)]">
- <span>Recordings processed:</span>
- <span class="font-semibold">${ syncResults.recordings_processed }</span>
+ <div class="modal-body">
+ <div class="space-y-2">
+ <div class="flex justify-between text-[var(--text-secondary)]">
+ <span>Shares created:</span>
+ <span class="font-semibold">${ syncResults.shares_created }</span>
+ </div>
+ <div class="flex justify-between text-[var(--text-secondary)]">
+ <span>Recordings processed:</span>
+ <span class="font-semibold">${ syncResults.recordings_processed }</span>
+ </div>
</div>
</div>
- <div class="flex justify-end">
- <button @click="showSyncResultsModal = false" class="px-4 py-2 bg-[var(--bg-button)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-button-hover)]">
- Done
- </button>
+ <div class="modal-footer">
+ <button @click="showSyncResultsModal = false" class="btn btn--primary">Done</button>
</div>
</div>
</div>
<!-- Delete Group Confirmation Modal -->
- <div v-if="showDeleteTeamModal" @click.self="showDeleteTeamModal = false" class="fixed inset-0 bg-black bg-opacity-70 backdrop-blur-sm flex items-center justify-center z-50 p-4">
- <div class="bg-[var(--bg-secondary)] p-6 rounded-lg shadow-xl w-full max-w-md">
- <div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">Delete Group</h3>
- <button @click="showDeleteTeamModal = false" class="text-[var(--text-muted)] hover:text-[var(--text-secondary)]">&times;</button>
+ <div v-if="showDeleteTeamModal" @click.self="showDeleteTeamModal = false" class="modal-overlay">
+ <div class="modal-panel modal-panel--sm modal-panel--danger">
+ <div class="modal-header">
+ <h3 class="modal-title">Delete Group</h3>
+ <button @click="showDeleteTeamModal = false" class="modal-close" title="Close"><i class="fas fa-times"></i></button>
+ </div>
+ <div class="modal-body">
+ <p class="text-[var(--text-secondary)]">Are you sure you want to delete the group <span class="font-semibold">${ teamToDelete?.name }</span>? This will remove all members from the group. This action cannot be undone.</p>
</div>
- <p class="mb-4 text-[var(--text-secondary)]">Are you sure you want to delete the group <span class="font-semibold">${ teamToDelete?.name }</span>? This will remove all members from the group. This action cannot be undone.</p>
- <div class="flex justify-end space-x-3">
- <button @click="showDeleteTeamModal = false" class="px-4 py-2 border border-[var(--border-secondary)] text-[var(--text-secondary)] rounded-md hover:bg-[var(--bg-tertiary)]">Cancel</button>
- <button @click="deleteTeam" class="px-4 py-2 bg-[var(--bg-danger)] text-[var(--text-button)] rounded-md hover:bg-[var(--bg-danger-hover)]">Delete Group</button>
+ <div class="modal-footer">
+ <button @click="showDeleteTeamModal = false" class="btn btn--ghost">Cancel</button>
+ <button @click="deleteTeam" class="btn btn--danger">Delete Group</button>
</div>
</div>
</div>
<!-- Manage Group Tags Modal -->
- <div v-if="showManageTeamTagsModal" @click.self="closeManageTeamTagsModal" class="fixed inset-0 bg-black bg-opacity-70 backdrop-blur-sm flex items-center justify-center z-50 p-4">
- <div class="bg-[var(--bg-secondary)] p-6 rounded-lg shadow-xl w-full max-w-3xl max-h-[90vh] overflow-y-auto">
- <div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">Manage Tags for ${ currentTeam?.name }</h3>
- <button @click="closeManageTeamTagsModal" class="text-[var(--text-muted)] hover:text-[var(--text-secondary)]">&times;</button>
+ <div v-if="showManageTeamTagsModal" @click.self="closeManageTeamTagsModal" class="modal-overlay">
+ <div class="modal-panel modal-panel--lg">
+ <div class="modal-header">
+ <h3 class="modal-title">Manage Tags for ${ currentTeam?.name }</h3>
+ <button @click="closeManageTeamTagsModal" class="modal-close" title="Close"><i class="fas fa-times"></i></button>
</div>
+ <div class="modal-body">
<!-- Create/Edit Tag Form -->
<div class="bg-[var(--bg-tertiary)] p-4 rounded-lg mb-4 border border-[var(--border-primary)]">
@@ -613,19 +599,19 @@
<p class="text-sm">No group tags created yet</p>
</div>
</div>
+ </div>
</div>
</div>
<!-- Manage Group Folders Modal -->
- <div v-if="showManageTeamFoldersModal" @click.self="closeManageTeamFoldersModal" class="fixed inset-0 bg-black bg-opacity-70 backdrop-blur-sm flex items-center justify-center z-50 p-4">
- <div class="bg-[var(--bg-secondary)] p-6 rounded-lg shadow-xl w-full max-w-3xl max-h-[90vh] overflow-y-auto">
- <div class="flex justify-between items-center mb-4">
- <h3 class="text-xl font-semibold text-[var(--text-primary)]">
- <i class="fas fa-folder mr-2 text-emerald-500"></i>
- Manage Folders for ${ currentTeam?.name }
- </h3>
- <button @click="closeManageTeamFoldersModal" class="text-[var(--text-muted)] hover:text-[var(--text-secondary)]">&times;</button>
+ <div v-if="showManageTeamFoldersModal" @click.self="closeManageTeamFoldersModal" class="modal-overlay">
+ <div class="modal-panel modal-panel--lg">
+ <div class="modal-header">
+ <i class="fas fa-folder text-emerald-500"></i>
+ <h3 class="modal-title">Manage Folders for ${ currentTeam?.name }</h3>
+ <button @click="closeManageTeamFoldersModal" class="modal-close" title="Close"><i class="fas fa-times"></i></button>
</div>
+ <div class="modal-body">
<!-- Create/Edit Folder Form -->
<div class="bg-[var(--bg-tertiary)] p-4 rounded-lg mb-4 border border-[var(--border-primary)]">
@@ -802,6 +788,7 @@
<p class="text-sm">No group folders created yet</p>
</div>
</div>
+ </div>
</div>
</div>
</div>
diff --git a/templates/inquire.html b/templates/inquire.html
index 21f8af97..9aefd7ca 100644
--- a/templates/inquire.html
+++ b/templates/inquire.html
@@ -570,14 +570,14 @@
<!-- Shares List Modal -->
<div v-if="showSharesListModal" 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">
+ <div class="modal-panel modal-panel--lg">
+ <div class="modal-header">
+ <h3 class="modal-title" v-text="t('modal.sharedTranscripts')"></h3>
+ <button @click="closeSharesList" class="modal-close" title="Close">
<i class="fas fa-times"></i>
</button>
</div>
- <div class="p-6 space-y-4 overflow-y-auto">
+ <div class="modal-body space-y-4">
<div v-if="isLoadingShares" class="text-center">
<i class="fas fa-spinner fa-spin text-2xl text-[var(--text-muted)]"></i>
</div>
diff --git a/templates/modals/asr-editor-modal.html b/templates/modals/asr-editor-modal.html
index db0c5cfc..03dd7c6a 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="modal-overlay">
- <div @click="closeAllSpeakerSuggestions" class="modal-panel modal-panel--xl flex flex max-h-[90vh">
+ <div @click="closeAllSpeakerSuggestions" class="modal-panel modal-panel--xl">
<div class="modal-header">
<h3 class="modal-title" v-text="t('modal.editAsrTranscription')"></h3>
<span v-if="asrEditorSaveFlash" class="pill-status pill-status--success">
diff --git a/templates/modals/datetime-picker-modal.html b/templates/modals/datetime-picker-modal.html
index 34350c7c..a18a1205 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="modal-overlay">
- <div class="modal-panel modal-panel--xs overflow-hidden">
+ <div class="modal-panel modal-panel--xs">
<div class="modal-header">
<i class="fas fa-calendar-alt text-2xl text-[var(--text-accent)]"></i>
<h3 class="modal-title">Select Date &amp; Time</h3>
@@ -8,7 +8,7 @@
</div>
<!-- Calendar Section -->
- <div class="p-4">
+ <div class="modal-body">
<!-- Month/Year Navigation -->
<div class="flex items-center justify-between mb-4">
<button @click="prevMonth" class="p-2 rounded-lg hover:bg-[var(--bg-tertiary)] text-[var(--text-muted)] hover:text-[var(--text-primary)] transition-colors">
diff --git a/templates/modals/unified-share-modal.html b/templates/modals/unified-share-modal.html
index debe0ab6..ebca07f4 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="modal-overlay">
- <div class="modal-panel modal-panel--lg max-h-[90vh flex flex">
+ <div class="modal-panel modal-panel--lg">
<div class="modal-header">
<div class="flex-1">
<h3 class="modal-title" v-text="t('modal.shareRecording')"></h3>
@@ -9,7 +9,7 @@
<button @click="closeUnifiedShareModal" class="modal-close" :title="t('buttons.close')"><i class="fas fa-times"></i></button>
</div>
- <div class="flex-1 overflow-y-auto">
+ <div class="modal-body modal-body--flush">
<!-- Public Sharing Section -->
<div v-if="!internalShareRecording?.is_shared || internalShareRecording?.share_info?.can_reshare" class="px-6 py-4 border-b border-[var(--border-primary)]">
<h4 class="font-medium mb-2 flex items-center gap-2">
@@ -255,16 +255,16 @@
</div>
</div>
</div>
- </div>
- <!-- No Permission Message -->
- <div v-if="internalShareRecording?.is_shared && !internalShareRecording?.share_info?.can_reshare" class="px-6 py-6 text-center">
- <div class="bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4">
- <i class="fas fa-info-circle text-yellow-600 dark:text-yellow-400 text-2xl mb-2"></i>
- <p class="text-sm text-yellow-800 dark:text-yellow-300 font-medium">Sharing Not Available</p>
- <p class="text-xs text-yellow-700 dark:text-yellow-400 mt-1">
- This recording was shared with you, but you don't have permission to share it with others.
- </p>
+ <!-- No Permission Message -->
+ <div v-if="internalShareRecording?.is_shared && !internalShareRecording?.share_info?.can_reshare" class="px-6 py-6 text-center">
+ <div class="bg-yellow-50 dark:bg-yellow-900/20 border border-yellow-200 dark:border-yellow-800 rounded-lg p-4">
+ <i class="fas fa-info-circle text-yellow-600 dark:text-yellow-400 text-2xl mb-2"></i>
+ <p class="text-sm text-yellow-800 dark:text-yellow-300 font-medium">Sharing Not Available</p>
+ <p class="text-xs text-yellow-700 dark:text-yellow-400 mt-1">
+ This recording was shared with you, but you don't have permission to share it with others.
+ </p>
+ </div>
</div>
</div>