Fix subtitle size and don't auto-select any track on load

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-26 21:33:11 +02:00
parent 6311b90b21
commit 33e4691619
2 changed files with 3 additions and 4 deletions

View File

@@ -21,8 +21,8 @@ video::cue {
text-align: center; text-align: center;
background: rgba(0, 0, 0, 0.75); background: rgba(0, 0, 0, 0.75);
color: #ffffff; color: #ffffff;
font-size: 1rem; font-size: 1.4rem;
line-height: 1.4; line-height: 1.5;
} }
@layer utilities { @layer utilities {

View File

@@ -906,14 +906,13 @@ export default function Watch() {
v.play().catch(() => {}); v.play().catch(() => {});
}} }}
> >
{subtitleFiles.map((s, i) => ( {subtitleFiles.map((s) => (
<track <track
key={s.lang} key={s.lang}
kind="subtitles" kind="subtitles"
src={s.url} src={s.url}
srcLang={s.lang} srcLang={s.lang}
label={s.lang} label={s.lang}
default={i === 0}
/> />
))} ))}
</video> </video>