Skip to content

A self-hosted media server and file management system

fix: audio posters do not scale in theatre mode

aminnausinf3ef23c9daa2
diff --git a/resources/js/components/video/VideoPlayer.vue b/resources/js/components/video/VideoPlayer.vue
index 3f2c5bc0..678ba167 100755
--- a/resources/js/components/video/VideoPlayer.vue
+++ b/resources/js/components/video/VideoPlayer.vue
@@ -1202,7 +1202,7 @@ defineExpose({
:class="
cn(
`relative h-full object-contain select-none focus:outline-hidden`,
- stateVideo?.path ? ((isAudio || aspectRatio.isPortrait) && !isFullScreen ? 'max-h-[71vh]' : 'aspect-video') : 'aspect-video',
+ stateVideo?.path ? ((isAudio || aspectRatio.isPortrait) && isNormalView ? 'max-h-[71vh]' : 'aspect-video') : 'aspect-video',
{ 'bg-black': !isAudio && !aspectRatio.isAspectVideo },
isShowingControls ? 'cursor-auto' : 'cursor-none',
isFullScreen || isTheatreView