Skip to content

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

Python

fixes

Murtaza Nasirdce902c4f4f2
diff --git a/static/css/styles.css b/static/css/styles.css
index 24df2000..66001027 100644
--- a/static/css/styles.css
+++ b/static/css/styles.css
@@ -970,3 +970,19 @@ body {
}
}
+
+/* Responsive title that shrinks font size instead of wrapping */
+.responsive-title {
+ font-size: clamp(1.25rem, 4vw, 1.5rem); /* Responsive font size between 1.25rem and 1.5rem */
+ line-height: 1.2;
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ max-width: 100%;
+}
+
+/* Ensure the title container doesn't grow beyond available space */
+.responsive-title:parent {
+ min-width: 0;
+ flex: 1;
+}
diff --git a/templates/index.html b/templates/index.html
index df6d1787..36e8e80c 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -684,7 +684,7 @@
<div class="flex flex-col sm:flex-row justify-between items-start mb-4 border-b border-[var(--border-primary)] pb-4">
<div class="mb-3 sm:mb-0 max-w-lg">
<h3 class="text-2xl font-semibold text-[var(--text-primary)] flex items-center">
- <span style="hyphens: auto; overflow-wrap: break-word; min-width: 0;">${ selectedRecording.title || 'Loading...' }</span>
+ <span class="responsive-title" style="min-width: 0;">${ selectedRecording.title || 'Loading...' }</span>
</h3>
<p class="text-sm text-[var(--text-muted)] mt-2 flex flex-wrap items-center gap-x-3 gap-y-1">
<!-- Display Meeting Date with edit functionality -->