bug fix subtitles

This commit is contained in:
Pas 2025-05-06 16:52:57 -06:00
parent 90de6918b9
commit 8ac6c07682
2 changed files with 5 additions and 9 deletions

View file

@ -74,7 +74,7 @@ export function CaptionCue({
};
case "dropShadow":
return { textShadow: "2.5px 2.5px 4.5px rgba(0,0,0,0.9)" };
case "none":
case "default":
default:
return { textShadow: "0 2px 4px rgba(0,0,0,0.5)" }; // Default is a light drop shadow
}
@ -154,13 +154,9 @@ export function SubtitleView(props: { controlsShown: boolean }) {
if (captionAsTrack || !caption || isCasting) return null;
return (
<Transition
className="absolute inset-0 pointer-events-none"
animation="slide-up"
show
>
<Transition className="pointer-events-none" animation="slide-up" show>
<div
className="text-white absolute flex w-full flex-col items-center transition-[bottom]"
className="text-white absolute w-full flex flex-col items-center transition-[bottom]"
style={{
bottom: props.controlsShown
? "6rem"

View file

@ -82,7 +82,7 @@ export const useSubtitleStore = create(
backgroundBlur: 0.5,
bold: false,
verticalPosition: 3,
fontStyle: "none",
fontStyle: "default",
},
showDelayIndicator: false,
resetSubtitleSpecificSettings() {
@ -126,7 +126,7 @@ export const useSubtitleStore = create(
backgroundBlur: 0.5,
bold: false,
verticalPosition: 3,
fontStyle: "none",
fontStyle: "default",
};
});
},