Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Pass E foundations: mobile tab-navigation uses the same .tabs primitive as desktop (no more bespoke flex-1 active-bg-secondary border-b-2 markup) with Summary as the default landing tab matching the design contract; mobile media query in primitives.css bumps icon button width to 40px, tab min-height to 44px (HIG/Material touch target spec), and field font-size to 16px (prevents iOS auto-zoom on focus) plus tightened modal padding on small screens
Murtaza Nasir6014b6aa8e7b
diff --git a/static/css/primitives.css b/static/css/primitives.cssindex ebe53767..766556b6 100644--- a/static/css/primitives.css+++ b/static/css/primitives.css@@ -830,6 +830,27 @@ html.dark .modal-overlay {}+/* ---- Mobile touch-target adjustments -----------------------------------+ *+ * Apple HIG + Material spec both want ~44px minimum touch targets on+ * touch devices. On narrow viewports, bump icon buttons and tabs to+ * comfortable sizes so they're easy to hit with a thumb.+ * --------------------------------------------------------------------- */++@media (max-width: 768px) {+ .btn--icon { width: 40px; min-height: 40px; }+ .btn--icon.btn--sm { width: 36px; min-height: 36px; }+ .btn { min-height: 40px; }+ .btn--sm { min-height: 36px; }+ .tab { padding: var(--sp-3) var(--sp-3); min-height: 44px; }+ .toggle { min-height: 32px; padding: var(--sp-1) var(--sp-3); }+ .field { min-height: 40px; font-size: 16px; /* prevents iOS zoom */ }+ .modal-header { padding: var(--sp-3) var(--sp-4); }+ .modal-body { padding: var(--sp-4); }+ .modal-footer { padding: var(--sp-3) var(--sp-4); }+}++/* ---- Focus ring fallback for all interactive elements ----------------- */button:focus-visible,diff --git a/templates/components/detail/tab-navigation.html b/templates/components/detail/tab-navigation.htmlindex 52692814..53a6346e 100644--- a/templates/components/detail/tab-navigation.html+++ b/templates/components/detail/tab-navigation.html@@ -1,20 +1,34 @@-<!-- Tab Navigation for Mobile -->-<div class="flex-shrink-0 bg-[var(--bg-tertiary)] border-b border-[var(--border-primary)] flex overflow-x-auto">- <button @click="mobileTab = 'transcript'"- :class="['flex-1 px-4 py-3 text-sm font-medium transition-colors', mobileTab === 'transcript' ? 'bg-[var(--bg-secondary)] text-[var(--text-accent)] border-b-2 border-[var(--border-focus)]' : 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]']"- v-text="t('transcription.title')"></button>- <button @click="mobileTab = 'summary'"- :class="['flex-1 px-4 py-3 text-sm font-medium transition-colors', mobileTab === 'summary' ? 'bg-[var(--bg-secondary)] text-[var(--text-accent)] border-b-2 border-[var(--border-focus)]' : 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]']"- v-text="t('summary.title')"></button>- <button @click="mobileTab = 'notes'"- :class="['flex-1 px-4 py-3 text-sm font-medium transition-colors', mobileTab === 'notes' ? 'bg-[var(--bg-secondary)] text-[var(--text-accent)] border-b-2 border-[var(--border-focus)]' : 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]']"- v-text="t('notes.title')"></button>- <button @click="mobileTab = 'chat'"- :class="['flex-1 px-4 py-3 text-sm font-medium transition-colors', mobileTab === 'chat' ? 'bg-[var(--bg-secondary)] text-[var(--text-accent)] border-b-2 border-[var(--border-focus)]' : 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]']"- v-text="t('chat.title')"></button>- <button v-if="selectedRecording.events && selectedRecording.events.length > 0"- @click="mobileTab = 'events'"- :class="['flex-1 px-4 py-3 text-sm font-medium transition-colors whitespace-nowrap', mobileTab === 'events' ? 'bg-[var(--bg-secondary)] text-[var(--text-accent)] border-b-2 border-[var(--border-focus)]' : 'text-[var(--text-muted)] hover:text-[var(--text-secondary)]']">- <i class="fas fa-calendar-alt mr-1"></i>${ t('events.title') } (${ selectedRecording.events.length })- </button>+<!-- Mobile Tab Navigation (design system v1) — uses the same tabs+ primitive as desktop so the mobile shell shares the same language. -->+<div class="flex-shrink-0">+ <div class="tabs px-2 overflow-x-auto">+ <button @click="mobileTab = 'summary'"+ class="tab"+ :class="{'is-active': mobileTab === 'summary'}">+ <span v-text="t('summary.title')"></span>+ </button>+ <button @click="mobileTab = 'transcript'"+ class="tab"+ :class="{'is-active': mobileTab === 'transcript'}">+ <span v-text="t('transcription.title')"></span>+ </button>+ <button @click="mobileTab = 'notes'"+ class="tab"+ :class="{'is-active': mobileTab === 'notes'}">+ <span v-text="t('notes.title')"></span>+ </button>+ <button @click="mobileTab = 'chat'"+ class="tab"+ :class="{'is-active': mobileTab === 'chat'}">+ <span v-text="t('chat.title')"></span>+ </button>+ <button v-if="selectedRecording.events && selectedRecording.events.length > 0"+ @click="mobileTab = 'events'"+ class="tab"+ :class="{'is-active': mobileTab === 'events'}">+ <i class="fas fa-calendar-alt" style="font-size: 11px;"></i>+ <span v-text="t('events.title')"></span>+ <span class="tab__count">${ selectedRecording.events.length }</span>+ </button>+ </div></div>