Skip to content

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

Python

layout

Murtaza Nasir35170ca23ff6
diff --git a/static/css/styles.css b/static/css/styles.css
index 892b734d..6f37f4db 100644
--- a/static/css/styles.css
+++ b/static/css/styles.css
@@ -100,23 +100,42 @@ html { /* Apply base colors to html for smoother transitions */
transition: background-color 0.3s, color 0.3s;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
-html, body { height: 100%; margin: 0; }
-#app { min-height: 100%; display: flex; flex-direction: column; }
-main { flex-grow: 1; position: relative; }
+html {
+ height: 100%;
+ margin: 0;
+}
+body {
+ height: 100%;
+ margin: 0;
+ overflow-y: auto; /* Allow scrolling on the body */
+}
+#app {
+ min-height: 100%; /* Full viewport height */
+ display: flex;
+ flex-direction: column;
+}
+main {
+ flex: 1;
+ position: relative;
+ display: flex;
+ flex-direction: column;
+ overflow-y: auto; /* Allow scrolling on main */
+}
-/* Sidebar styles with max-height */
+/* Sidebar styles with flexible height */
.sidebar-container {
- max-height: 85vh; /* Limit height to 85% of viewport height */
+ height: 100%; /* Use relative height */
display: flex;
flex-direction: column;
- overflow: hidden; /* Prevent overall sidebar overflow */
+ overflow-y: auto; /* Allow sidebar to scroll */
}
-/* Grid container with flex layout and max-height */
+/* Grid container with flex layout and flexible height */
.grid-container {
- max-height: 85vh; /* Limit height to 85% of viewport height */
+ height: 100%; /* Use relative height */
display: flex;
flex-direction: column;
+ overflow-y: auto; /* Allow scrolling */
}
.sidebar-header {
@@ -163,6 +182,8 @@ div[v-if="!editingNotes"] {
display: flex;
flex-direction: column;
height: 100%;
+ min-height: 0; /* Allow content to size based on parent container */
+ flex: 1 1 auto; /* Grow and shrink as needed */
overflow: hidden;
}
@@ -172,6 +193,8 @@ div[v-if="!editingNotes"] {
flex-direction: column;
height: 100%;
gap: 1rem;
+ overflow-y: auto; /* Enable scrolling for content that exceeds container */
+ min-height: 0; /* Allows flex to work properly */
}
/* Right column content (audio player, chat) */
@@ -180,6 +203,8 @@ div[v-if="!editingNotes"] {
flex-direction: column;
height: 100%;
gap: 1rem;
+ overflow-y: auto; /* Enable scrolling for content that exceeds container */
+ min-height: 0; /* Allows flex to work properly */
}
/* Participants section - small fixed height */
@@ -191,7 +216,7 @@ div[v-if="!editingNotes"] {
.transcription-section {
flex: 2;
min-height: 0; /* Allows flex to work properly */
- overflow: hidden;
+ overflow-y: auto; /* Changed from hidden to auto to enable scrolling */
display: flex;
flex-direction: column;
}
@@ -200,7 +225,7 @@ div[v-if="!editingNotes"] {
.tab-section {
flex: 1;
min-height: 100px; /* Minimum height to prevent collapsing too much */
- overflow: hidden;
+ overflow-y: auto; /* Changed from hidden to auto to enable scrolling */
display: flex;
flex-direction: column;
height: 100%; /* Ensure it takes full height */
@@ -215,7 +240,7 @@ div[v-if="!editingNotes"] {
.chat-section {
flex: 1;
min-height: 0; /* Allows flex to work properly */
- overflow: hidden;
+ overflow-y: auto; /* Changed from hidden to auto to enable scrolling */
display: flex;
flex-direction: column;
}
@@ -313,6 +338,7 @@ div[v-if="!editingNotes"] {
/* Hover edit button styles */
.content-box {
position: relative;
+ overflow-y: auto; /* Allow content to scroll */
}
.hover-edit-btn {
@@ -357,6 +383,7 @@ div[v-if="!editingNotes"] {
display: flex;
flex-direction: column;
height: 100%;
+ min-height: 300px; /* Minimum height for chat container */
box-shadow: 0 1px 3px rgba(0,0,0,0.05);
overflow: hidden;
}
@@ -471,7 +498,23 @@ div[v-if="!editingNotes"] {
color: #666;
}
- /* Modern toast notification styles */
+ /* Main content container - ensure it fills available space and allows scrolling */
+.flex-grow.flex.flex-col.md\:flex-row.gap-6.overflow-hidden {
+ max-height: none !important; /* Override the inline style */
+ height: 100%;
+ flex: 1;
+ overflow-y: auto; /* Allow scrolling */
+}
+
+/* Ensure the lg:col-span-3 container can grow properly and scroll */
+.lg\:col-span-3.bg-\[var\(--bg-secondary\)\].p-6.rounded-lg.shadow-md.flex.flex-col.max-h-85vh {
+ max-height: none !important; /* Override the max-height constraint */
+ height: 100%;
+ flex: 1;
+ overflow-y: auto; /* Allow scrolling */
+}
+
+/* Modern toast notification styles */
.toast-container {
position: fixed;
bottom: 20px;
diff --git a/templates/index.html b/templates/index.html
index 94ec113a..246f97b6 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -255,7 +255,7 @@
</div>
<!-- Main content area with flex layout -->
- <div class="flex flex-col md:flex-row gap-6 flex-grow overflow-hidden" style="max-height: 75vh;">
+ <div class="flex flex-col md:flex-row gap-6 flex-grow overflow-y-auto" style="max-height: 75vh;">
<!-- Left Column: Participants, Transcription, Summary & Notes -->
<div class="md:w-2/5 content-column left-content">
<!-- Participants Section -->
@@ -325,7 +325,7 @@
<!-- Summary Panel -->
<div v-show="selectedTab === 'summary'" class="h-full">
<div v-if="selectedRecording.status === 'COMPLETED'" class="h-full">
- <div v-if="!editingSummary" class="content-box h-full flex flex-col min-h-0 overflow-hidden">
+ <div v-if="!editingSummary" class="content-box h-full flex flex-col min-h-0">
<div class="summary-box custom-scrollbar bg-[var(--bg-tertiary)] border-[var(--border-primary)] text-[var(--text-secondary)]" v-html="selectedRecording.summary_html || selectedRecording.summary || 'No summary generated.'">
</div>
<button @click="toggleEditSummary" class="hover-edit-btn text-[var(--text-muted)] hover:text-[var(--text-accent)]" title="Edit Summary">
@@ -343,7 +343,7 @@
<!-- Notes Panel -->
<div v-show="selectedTab === 'notes'" class="h-full">
- <div v-if="!editingNotes" class="content-box h-full flex flex-col min-h-0 overflow-hidden">
+ <div v-if="!editingNotes" class="content-box h-full flex flex-col min-h-0">
<div class="notes-box custom-scrollbar" v-html="selectedRecording.notes_html || selectedRecording.notes || 'No notes'"></div>
<button @click="toggleEditNotes" class="hover-edit-btn text-[var(--text-muted)] hover:text-[var(--text-accent)]" title="Edit Notes">
<i class="fas fa-edit"></i>