Skip to content

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

Python

Mobile progress popup: convert to a bottom-sheet anchored above the audio player + nav strip — was a 320 px wide desktop card pinned to bottom-left with the same positioning on every viewport, so on phones it landed right where the audio player and tab navigation are and obscured them (visible in the screenshot as the Processing Queue card overlapping the bottom-nav row and player); now uses .progress-popup + .progress-popup__card classes with viewport-specific rules in primitives.css: above 640 px the layout is unchanged (bottom-left 320 px floating card, 8 px rounded card corners), at 640 px or below the popup becomes a full-width sheet whose bottom edge is calc(70px + 56px + env(safe-area-inset-bottom)) — that sits the sheet ABOVE the player + nav rather than overlapping them; rounded only on the top corners and side borders removed so it reads as a sheet anchored to the bottom edge instead of a free-floating card; slide-up animation introduced (220 ms cubic-bezier) so it doesn't snap in; max-height 60vh so a long queue can scroll without consuming the entire viewport; the existing minimize/close/clear behaviour and content layout inside the card are untouched — only the chrome around it changed

Murtaza Nasiref31ec052578
diff --git a/static/css/primitives.css b/static/css/primitives.css
index d075a3bc..017b4c86 100644
--- a/static/css/primitives.css
+++ b/static/css/primitives.css
@@ -1481,3 +1481,44 @@ textarea:focus-visible {
border-radius: 0 !important;
}
}
+
+
+/* ---- Progress popup viewport rules -------------------------------------
+ Desktop: 320 px floating card pinned to bottom-left.
+ Mobile (≤ 640 px): full-width bottom-sheet that sits ABOVE the audio
+ player + tab navigation strip (≈ 70 px player + 56 px nav + safe-area
+ inset). Rounded only on the top corners so it reads as a sheet
+ anchored to the bottom edge, not a free-floating card. */
+.progress-popup {
+ bottom: 1rem;
+ left: 1rem;
+ width: 20rem;
+}
+.progress-popup__card {
+ border-radius: 0.5rem;
+}
+
+@media (max-width: 640px) {
+ .progress-popup {
+ bottom: calc(70px + 56px + env(safe-area-inset-bottom, 0px));
+ left: 0;
+ right: 0;
+ width: auto;
+ max-height: 60vh;
+ animation: progressSheetUp 220ms cubic-bezier(0.16, 1, 0.3, 1);
+ }
+ .progress-popup__card {
+ border-radius: 0.75rem 0.75rem 0 0;
+ border-left-width: 0;
+ border-right-width: 0;
+ border-bottom-width: 0;
+ }
+ /* The minimized header strip is fine to render full-width too;
+ the existing collapse logic in the template handles the body
+ visibility. */
+}
+
+@keyframes progressSheetUp {
+ from { opacity: 0; transform: translateY(100%); }
+ to { opacity: 1; transform: translateY(0); }
+}
diff --git a/templates/components/progress-popup.html b/templates/components/progress-popup.html
index f8a68795..83aa94a8 100644
--- a/templates/components/progress-popup.html
+++ b/templates/components/progress-popup.html
@@ -1,10 +1,23 @@
-<!-- Processing Queue Popup - Compact Unified Progress Tracking -->
+<!-- Processing Queue Popup.
+
+ Two distinct layouts driven by viewport:
+ - DESKTOP (≥ 641 px): bottom-left floating card, 320 px wide,
+ 16 px from bottom and left. Same behaviour the user has always
+ had.
+ - MOBILE (≤ 640 px): full-width bottom-sheet that anchors ABOVE
+ the audio player + tab navigation (instead of overlapping
+ them as in the previous wiring); rounded top corners only,
+ slide-up animation, content takes the whole row width so the
+ compact desktop card no longer reads like a pasted desktop
+ widget on a phone. When minimized on mobile the sheet
+ collapses to just its header strip, still sitting above the
+ player / nav — never obscures content. -->
<div v-if="showProcessingPopup && !progressPopupClosed"
:class="[
- 'fixed bottom-4 left-4 z-[100] w-80 transition-all duration-300',
+ 'progress-popup fixed z-[100] transition-all duration-300',
progressPopupMinimized ? 'minimized' : ''
]">
- <div class="bg-[var(--bg-secondary)] border border-[var(--bg-accent)] rounded-lg shadow-xl overflow-hidden backdrop-blur-sm bg-opacity-95">
+ <div class="progress-popup__card bg-[var(--bg-secondary)] border border-[var(--bg-accent)] shadow-xl overflow-hidden backdrop-blur-sm bg-opacity-95">
<!-- Compact Header -->
<div class="bg-gradient-to-r from-[var(--bg-accent)] to-[var(--bg-accent-hover)] px-3 py-2">
<div class="flex items-center justify-between">