Skip to content

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

Python

css

Murtaza Nasir242b9acd0763
diff --git a/static/css/styles.css b/static/css/styles.css
index f0eb8c04..74021224 100644
--- a/static/css/styles.css
+++ b/static/css/styles.css
@@ -591,20 +591,21 @@ div[v-if="!editingNotes"] {
}
/* Fix for sidebar height and scrolling */
-/* Ensure the grid layout container has a fixed height */
+/* Remove fixed height constraint from the grid container to allow natural height */
.grid.grid-cols-1.lg\:grid-cols-4.gap-6.flex-grow {
display: grid;
- height: calc(85vh - 2rem); /* Match the max-h-85vh but subtract some padding */
min-height: 0; /* Allow the grid to shrink if needed */
- overflow: hidden; /* Hide overflow at the grid level */
+ overflow: visible; /* Allow overflow to be visible and scroll with the main window */
}
-/* Ensure the sidebar container doesn't expand beyond its parent */
+/* Set a fixed height for the sidebar only */
.lg\:col-span-1.bg-\[var\(--bg-secondary\)\].p-4.rounded-lg.shadow-md.sidebar-container.max-h-85vh {
display: flex;
flex-direction: column;
overflow: hidden; /* Hide overflow at container level */
- max-height: 100%; /* Limit to parent height */
+ height: calc(100vh - 12rem); /* Fixed height for sidebar, adjusted for header/footer */
+ position: sticky;
+ top: 1rem; /* Stick to the top with some padding */
}
/* Make sure the sidebar content scrolls internally */
@@ -613,3 +614,20 @@ div[v-if="!editingNotes"] {
overflow-y: auto; /* Enable scrolling for content */
min-height: 0; /* Allow content to shrink */
}
+
+/* Ensure the main content area uses the window 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: auto; /* Let height be determined by content */
+ overflow: visible; /* Use the window scroll */
+}
+
+/* Allow the main container to use window scrolling */
+main {
+ overflow-y: visible; /* Use window scrolling instead of internal scrolling */
+}
+
+/* Ensure body scrolls when content exceeds viewport */
+body {
+ overflow-y: auto; /* Allow scrolling on the body */
+}