Skip to content

Commit

Permalink
Bug fix: swap order of div and section in youTube.js (#863)
Browse files Browse the repository at this point in the history
  • Loading branch information
snehankekre authored Oct 27, 2023
1 parent 94e00b0 commit 9d968a0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/blocks/youTube.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const YouTube = ({ caption, videoId, start, end, autoplay, loop }) => {
}

YouTubeBlock = (
<div className={styles.Container}>
<section className={styles.IframeContainer}>
<section className={styles.Container}>
<div className={styles.IframeContainer}>
<iframe
src={`https://www.youtube-nocookie.com/embed/${videoId}?playlist=${videoId}&rel=0&start=${start}&end=${end}&autoplay=${autoplay}&loop=${loop}&mute=${mute}`}
className={styles.Iframe}
Expand All @@ -21,13 +21,13 @@ const YouTube = ({ caption, videoId, start, end, autoplay, loop }) => {
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowFullScreen
></iframe>
</section>
</div>
{caption && (
<div className={styles.CaptionContainer}>
<p className={styles.Caption}>{caption}</p>
</div>
)}
</div>
</section>
);
return YouTubeBlock;
};
Expand Down

0 comments on commit 9d968a0

Please sign in to comment.