allow user to select subtitle text

This commit is contained in:
Pas 2025-07-15 19:08:08 -06:00
parent 95f27565c7
commit ef8521fdf4

View file

@ -75,7 +75,7 @@ export function CaptionCue({
return ( return (
<p <p
className="pointer-events-none mb-1 select-none rounded px-4 py-1 text-center leading-normal" className="mb-1 rounded px-4 py-1 text-center leading-normal"
style={{ style={{
color: styling.color, color: styling.color,
fontSize: `${(1.5 * styling.size).toFixed(2)}em`, fontSize: `${(1.5 * styling.size).toFixed(2)}em`,
@ -145,7 +145,7 @@ export function SubtitleView(props: { controlsShown: boolean }) {
if (captionAsTrack || !caption || isCasting) return null; if (captionAsTrack || !caption || isCasting) return null;
return ( return (
<Transition className="pointer-events-none" animation="slide-up" show> <Transition animation="slide-up" show>
<div <div
className="text-white absolute w-full flex flex-col items-center transition-[bottom]" className="text-white absolute w-full flex flex-col items-center transition-[bottom]"
style={{ style={{