Skip to content

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

Python

Speaker modal: remove the modal-content class that fought the new flex-column layout — answering 'why didn't we have these bugs earlier'; v0.8.21 had a custom 'flex flex-col h-[85vh]' wrapper on the modal that was the sole scrollable height boundary; the design-system migration to .modal-panel kept the 'modal-content' class on the main content div, which carries 'max-height: calc(100vh - 200px); overflow-y: auto' from styles.css; that class predates the design-system primitive and was harmless when the wrapper sized the height — but with the new flex-column modal-panel it introduced a SECOND scrollable container nested between the panel and the transcript, the transcript pane's clientHeight depended on how much room modal-content gave it which depended on how much content filled modal-content, feeding back into virtualScroll's range recompute every time content rendered or shifted (the source of the flickering, mis-position, and 'wrong items rendered' bugs); removing the modal-content class lets flex-grow take the natural remaining height of the modal-panel (which is locked at 90vh) and leaves the transcript pane as the only scrollable container — exactly the topology v0.8.21 had with its 85vh fixed-height wrapper; with this and the height: 90vh on the modal-panel, the original v0.8.21 one-line scrollToSegmentIndex should now behave the same way it did pre-regression

Murtaza Nasir9843657b1236
diff --git a/templates/modals/speaker-modal.html b/templates/modals/speaker-modal.html
index b25489ad..b72245a1 100644
--- a/templates/modals/speaker-modal.html
+++ b/templates/modals/speaker-modal.html
@@ -40,8 +40,18 @@
</button>
</div>
- <!-- Main Content - Tab-based on mobile, side-by-side on desktop -->
- <div class="flex-grow flex flex-col lg:flex-row overflow-hidden modal-content">
+ <!-- Main Content - Tab-based on mobile, side-by-side on desktop.
+ modal-content class intentionally REMOVED: it carries
+ 'max-height: calc(100vh - 200px); overflow-y: auto' from
+ styles.css that fought the new .modal-panel flex-column
+ layout — it introduced a SECOND scrollable container
+ between the modal panel and the transcript pane, making
+ the transcript's clientHeight unstable and feeding back
+ into virtualScroll's range recompute. With it removed the
+ flex-grow takes the natural remaining height of the
+ modal-panel and the only scrollable container is the
+ transcript pane itself. -->
+ <div class="flex-grow flex flex-col lg:flex-row overflow-hidden">
<!-- Speaker List Panel - shown on mobile when speakers tab active, always on desktop -->
<div class="lg:w-1/3 p-3 sm:p-6 space-y-2 sm:space-y-4 overflow-y-auto custom-scrollbar lg:border-r border-[var(--border-primary)]"
:class="{ 'hidden lg:block': speakerModalTab !== 'speakers', 'flex-1': speakerModalTab === 'speakers' }">