This commit is contained in:
2026-04-21 21:36:04 +03:00
parent 4ea7fda3d5
commit fb18e169fd
@@ -177,6 +177,7 @@ export default function SubtitleOverlay({ playerRef, subtitleUrl }: Props) {
if (!video) return if (!video) return
function update() { function update() {
if (!video) return
const { top: fitTop, bottom: fitBottom } = getVideoFitOffsets(video) const { top: fitTop, bottom: fitBottom } = getVideoFitOffsets(video)
if (subtitlePosition === 'bottom') { if (subtitlePosition === 'bottom') {
setOffset(Math.max(128, fitBottom + 32)) setOffset(Math.max(128, fitBottom + 32))