Speakr is a personal, self-hosted web application designed for transcribing audio recordings
Python
Fix queue #4 — title-edit input no longer collapses to a few dozen pixels + regenerate-title button restored — (1) the title wrapper was flex-shrink-only (sized to content), so flex-1 on the input couldn't expand because the wrapper itself was already narrow; wrapper now uses flex-1 + min-w-0 so it claims the remaining horizontal space in the header row, and the h1 itself got flex-1 too so display mode also fills the row before truncating; (2) the regenerate-title button (fas fa-sync-alt that AI-regenerates the title from the transcript via /recording/:id/regenerate_title) was on the old desktop-header.html but did not survive the merge into the adaptive header — re-added next to the edit-pencil with the same shown-when conditions (only for completed editable recordings, hidden while editing); both icon buttons use the .btn .btn--icon .btn--sm primitive plus flex-shrink-0 so they don't squeeze when the title is long
Murtaza Nasirc4a7b8d1aa7f
diff --git a/templates/components/header.html b/templates/components/header.htmlindex 45999687..b6365456 100644--- a/templates/components/header.html+++ b/templates/components/header.html@@ -25,15 +25,20 @@On narrower screens (mobile) we still rely on mobile-header.htmlbelow the global header for full metadata. --><template v-else>- <!-- Recording title -->- <div class="flex items-center gap-2 min-w-0 flex-shrink">+ <!-- Recording title. The wrapper uses flex-1 + min-w-0 so+ the title (h1 or input) can take all remaining+ horizontal space in the header row; the previous+ flex-shrink without flex-grow sized the wrapper to+ content, which made the input collapse to a few dozen+ pixels in edit mode. -->+ <div class="flex items-center gap-2 min-w-0 flex-1"><a href="/" class="flex-shrink-0 hidden sm:block" :title="'Back to Speakr'"><img src="{{ url_for('static', filename='img/icon-32x32.png') }}" alt="Speakr" class="w-7 h-7"></a><h1 v-if="!editingTitle"@dblclick="selectedRecording.can_edit !== false ? toggleEditTitle() : null":class="[- 'text-base sm:text-lg font-semibold truncate transition-opacity min-w-0',+ 'text-base sm:text-lg font-semibold truncate transition-opacity min-w-0 flex-1',selectedRecording.is_shared ? 'text-[var(--text-accent)]' : 'text-[var(--text-primary)]',selectedRecording.can_edit !== false ? 'cursor-text hover:opacity-80' : '']"@@ -50,10 +55,22 @@placeholder="Untitled Recording"><button v-if="!editingTitle && selectedRecording.can_edit !== false"@click="toggleEditTitle"- class="btn btn--icon btn--sm"+ class="btn btn--icon btn--sm flex-shrink-0":title="t('tooltips.editTitle')"><i class="fas fa-pen text-xs"></i></button>+ <!-- Regenerate title (AI). Shown only for completed+ recordings, hidden while editing. Re-added per+ queue item #4 — was lost when the bespoke+ desktop-header.html merged into this adaptive+ header. -->+ <button v-if="!editingTitle && selectedRecording.can_edit !== false && selectedRecording.status === 'COMPLETED'"+ @click="regenerateTitle"+ :disabled="regeneratingTitle"+ class="btn btn--icon btn--sm flex-shrink-0"+ :title="t('tooltips.regenerateTitle')">+ <i class="fas fa-sync-alt text-xs" :class="{ 'fa-spin': regeneratingTitle }"></i>+ </button><!-- Status badge for non-completed recordings --><span v-if="!editingTitle && selectedRecording.status !== 'COMPLETED'":class="getStatusClass(selectedRecording.status)"