Skip to content

Commit

Permalink
[VMediaPlayer, ModPlayVOD] Fix video player's responsive height scaling
Browse files Browse the repository at this point in the history
Without this fix, the video player would overflow beyond the height of the modal window.
  • Loading branch information
m4heshd committed Jul 21, 2024
1 parent 1193f84 commit d1f8b5e
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions frontend/src/components/ModPlayVOD.vue
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,14 @@ const modPlayVOD = useModPlayVODStore();
max-width: 950rem;
max-height: 80%;
overflow: hidden;
.v-media-player {
height: 100%;
& > .plyr {
height: 100%;
max-height: 100%;
}
}
}
</style>
1 change: 1 addition & 0 deletions frontend/src/components/VMediaPlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ onBeforeUnmount(() => {
--plyr-color-main: var(--primary);
video {
height: 100%;
min-width: 100%;
aspect-ratio: 16 / 9;
object-fit: cover;
Expand Down

0 comments on commit d1f8b5e

Please sign in to comment.