diff --git a/DiscordChatExporter.Core/Exporting/Writers/Html/Core.css b/DiscordChatExporter.Core/Exporting/Writers/Html/Core.css index ba6eea6f..b7eef66b 100644 --- a/DiscordChatExporter.Core/Exporting/Writers/Html/Core.css +++ b/DiscordChatExporter.Core/Exporting/Writers/Html/Core.css @@ -458,6 +458,10 @@ img { border-radius: 3px; } +.chatlog__embed-youtube-container { + margin-top: 0.6em; +} + .chatlog__embed-image-container { margin-top: 0.6em; } diff --git a/DiscordChatExporter.Core/Exporting/Writers/Html/MessageGroupTemplate.cshtml b/DiscordChatExporter.Core/Exporting/Writers/Html/MessageGroupTemplate.cshtml index 3c154c9b..0f3c47fc 100644 --- a/DiscordChatExporter.Core/Exporting/Writers/Html/MessageGroupTemplate.cshtml +++ b/DiscordChatExporter.Core/Exporting/Writers/Html/MessageGroupTemplate.cshtml @@ -214,8 +214,19 @@ } } + @if (!string.IsNullOrWhiteSpace(embed.Url) && embed.Url.IndexOf("youtube.com/watch?v=") != -1) + { - @if (!string.IsNullOrWhiteSpace(embed.Description)) + if (embed.Thumbnail is not null && !string.IsNullOrWhiteSpace(embed.Thumbnail.Url)) + { +
+ } + } + else if (!string.IsNullOrWhiteSpace(embed.Description)) {