Skip to content

Commit

Permalink
fix(Post): use aspect ratio
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Apr 15, 2023
1 parent 9632722 commit a02739d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/pages/posts/post/PostMedia.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
}"
:data-src="mediaSrc"
:height="mediaSrcHeight"
:style="`aspect-ratio: ${mediaSrcWidth}/${mediaSrcHeight};`"
:width="mediaSrcWidth"
class="h-auto w-full opacity-0 transition-opacity duration-700"
decoding="async"
Expand All @@ -59,6 +60,7 @@
:data-src="mediaSrc"
:height="mediaSrcHeight"
:poster="mediaPosterSrc"
:style="`aspect-ratio: ${mediaSrcWidth}/${mediaSrcHeight};`"
:width="mediaSrcWidth"
class="h-auto w-full"
controls
Expand Down

0 comments on commit a02739d

Please sign in to comment.