Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions app/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ body {
background: transparent;
}

/* Tailwind's `scrollbar-none` only sets scrollbar-width; Safari before 18.2
needs this too. The transcript relies on it to hide its scrollbar in favour
of its own time rail (see TranscriptScrollIndicator). */
.scrollbar-none::-webkit-scrollbar {
display: none;
}

/* Timeline: split confirmation flash */
@keyframes tl-split-flash {
0% {
Expand Down
8 changes: 6 additions & 2 deletions components/TranscriptPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import {
TRANSCRIPT_ACCEPT,
} from "@/lib/parseTranscript";
import type { SpeakerTurn, Word } from "@/lib/types";
import TranscriptScrollIndicator from "./TranscriptScrollIndicator";
import {
getActiveSceneBoundaries,
getCutRanges,
Expand Down Expand Up @@ -503,7 +504,7 @@ export default function TranscriptPanel() {
return (
// min-h-0 keeps this pane from growing to the transcript's full height —
// without it the panel wrapper scrolls instead of the list below.
<section className="relative flex min-h-0 min-w-0 flex-1 flex-col bg-white">
<section className="relative flex min-h-0 min-w-0 overflow-y-hidden flex-1 flex-col bg-white">
{/* Floats above the scroller rather than sticking inside it, so the
rubber-band overscroll only carries the transcript, not the bar. */}
<div className="absolute inset-x-0 top-0 z-10 flex h-10 items-center gap-2 border-b border-zinc-100/80 bg-white/75 px-3 backdrop-blur-md sm:px-4">
Expand Down Expand Up @@ -561,7 +562,7 @@ export default function TranscriptPanel() {

<div
ref={scrollRef}
className="relative min-h-0 flex-1 overflow-y-auto pt-10 scroll-pt-10"
className="scrollbar-none relative min-h-0 flex-1 overflow-y-auto pt-10 scroll-pt-10"
>
<div ref={containerRef} className="relative mx-auto max-w-2xl px-4 py-6 sm:px-8 sm:py-8">
{busy && (
Expand Down Expand Up @@ -719,6 +720,9 @@ export default function TranscriptPanel() {
)}
</div>
</div>
{/* Gradient overlay */}
<div className="absolute z-10 pointer-events-none inset-x-0 bottom-0 w-full h-20 bg-gradient-to-t from-white to-transparent" />
<TranscriptScrollIndicator scrollRef={scrollRef} contentRef={containerRef} />
</section>
);
}
Loading
Loading