Skip to content

A self-hosted media server and file management system

fix: subtitles container is outside the player container if there was a thumbnail

aminnausine14b2e5a69e5
diff --git a/resources/js/components/video/VideoPlayer.vue b/resources/js/components/video/VideoPlayer.vue
index b5e35e6b..86a7c775 100755
--- a/resources/js/components/video/VideoPlayer.vue
+++ b/resources/js/components/video/VideoPlayer.vue
@@ -1142,6 +1142,12 @@ watch(isShowingControls, async (visible) => {
await nextTick();
});
+// Must reposition subtitles when player changes from absolute to static
+watch(isThumbnailVisible, async () => {
+ await nextTick();
+ playerSubtitles.value?.resizeOctopus();
+});
+
onMounted(() => {
if (document.pictureInPictureElement) document.exitPictureInPicture();
handleLoadSavedVolume();