Skip to content

Commit

Permalink
feat(YouTubePlayer): adjust thumbnail ratio to 640x360 (#310)
Browse files Browse the repository at this point in the history
Co-authored-by: Harlan Wilton <harlan@harlanzw.com>
  • Loading branch information
maximepvrt and harlan-zw authored Nov 12, 2024
1 parent 2a1ab47 commit 8f84640
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/components/ScriptYouTubePlayer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const props = withDefaults(defineProps<{
// @ts-expect-error untyped
playerVars: { autoplay: 0, playsinline: 1 },
width: 640,
height: 480,
height: 360,
})
const emits = defineEmits<{
Expand Down Expand Up @@ -154,7 +154,7 @@ const placeholderAttrs = computed(() => {
loading: props.aboveTheFold ? 'eager' : 'lazy',
style: {
width: '100%',
objectFit: 'contain',
objectFit: 'cover',
height: '100%',
},
} satisfies ImgHTMLAttributes)
Expand Down

0 comments on commit 8f84640

Please sign in to comment.