Skip to content

Commit

Permalink
fix: youtube thumbnail in embed has black bars and repeating bg
Browse files Browse the repository at this point in the history
  • Loading branch information
teodorus-nathaniel committed Dec 14, 2023
1 parent 76f45f8 commit d901505
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/components/posts/embed/Embed.module.sass
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
width: 100%
height: 100%
background-position: center
background-size: cover

.YoutubeEmbedPlayer
position: absolute
Expand Down
2 changes: 1 addition & 1 deletion src/components/posts/embed/Embed.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ function YoutubeEmbed({ src }: { src: string }) {
adNetwork={true}
params=''
playlist={false}
poster='hqdefault'
poster='maxresdefault'
title='YouTube Embed'
noCookie={true}
wrapperClass={clsx(styles.YoutubeEmbedWrapper)}
Expand Down

0 comments on commit d901505

Please sign in to comment.