Skip to content

Commit e5830a1

Browse files
committed
💄 ajout d'une bordure sur les videos
1 parent de5291c commit e5830a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/Markdown/MarkdownHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static function replaceYouTubeTag($html, $tagArray, $original_string): st
4747
{
4848
if (isset($tagArray[2])) {
4949
$youtubeEmbedURL = $tagArray[2];
50-
$youtubeEmbed = '<iframe width="100%" height="399" src="https://www.youtube.com/embed/'.$youtubeEmbedURL.'" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>';
50+
$youtubeEmbed = '<div class="overflow-hidden rounded-lg"><iframe width="100%" height="399" src="https://www.youtube.com/embed/'.$youtubeEmbedURL.'" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe></div>';
5151
$html = str_replace($original_string, $youtubeEmbed, $html);
5252
}
5353

0 commit comments

Comments
 (0)