Skip to content

Commit

Permalink
video: Use fixed aspect-ratio on the library
Browse files Browse the repository at this point in the history
This forces it to handle well videos with different aspect-ratios, like 4:3.
  • Loading branch information
rafaellehmkuhl authored and patrickelectric committed May 2, 2024
1 parent 6093baa commit ed29554
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/VideoLibraryModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@
:controls="selectedVideos[0].isProcessed ? true : false"
:preload="selectedVideos[0].isProcessed ? 'auto' : 'none'"
:poster="selectedVideos[0]?.thumbnail || undefined"
class="border-[14px] border-white border-opacity-10 rounded-lg min-h-[382px]"
class="border-[14px] border-white border-opacity-10 rounded-lg min-h-[382px] aspect-video"
>
<source :src="selectedVideos[0]?.url || undefined" type="video/webm" />
</video>
Expand Down

0 comments on commit ed29554

Please sign in to comment.