mirror of
https://github.com/p-stream/p-stream.git
synced 2026-04-21 01:42:25 +00:00
allow user to select subtitle text
This commit is contained in:
parent
95f27565c7
commit
ef8521fdf4
1 changed files with 2 additions and 2 deletions
|
|
@ -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={{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue