From cfbd267d3adce4e87b2366d8261b24cb30067a53 Mon Sep 17 00:00:00 2001 From: Oleksii Holub <1935960+Tyrrrz@users.noreply.github.com> Date: Sat, 9 Apr 2022 20:25:13 +0300 Subject: [PATCH] Fix embed styles in HTML --- .../Writers/Html/MessageGroupTemplate.cshtml | 44 +++++++++---------- .../Writers/Html/PreambleTemplate.cshtml | 4 +- 2 files changed, 24 insertions(+), 24 deletions(-) diff --git a/DiscordChatExporter.Core/Exporting/Writers/Html/MessageGroupTemplate.cshtml b/DiscordChatExporter.Core/Exporting/Writers/Html/MessageGroupTemplate.cshtml index ddd9647..6e4e98b 100644 --- a/DiscordChatExporter.Core/Exporting/Writers/Html/MessageGroupTemplate.cshtml +++ b/DiscordChatExporter.Core/Exporting/Writers/Html/MessageGroupTemplate.cshtml @@ -233,7 +233,7 @@ @{/* Embed author */} @if (embed.Author is not null) { -
+
@if (!string.IsNullOrWhiteSpace(embed.Author.IconUrl)) { Author icon @@ -241,16 +241,16 @@ @if (!string.IsNullOrWhiteSpace(embed.Author.Name)) { - - @if (!string.IsNullOrWhiteSpace(embed.Author.Url)) - { - @embed.Author.Name - } - else - { - @embed.Author.Name - } - + if (!string.IsNullOrWhiteSpace(embed.Author.Url)) + { + +
@embed.Author.Name
+
+ } + else + { +
@embed.Author.Name
+ } }
} @@ -301,7 +301,7 @@ @{/* Embed author */} @if (embed.Author is not null) { -
+
@if (!string.IsNullOrWhiteSpace(embed.Author.IconUrl)) { Author icon @@ -309,16 +309,16 @@ @if (!string.IsNullOrWhiteSpace(embed.Author.Name)) { - - @if (!string.IsNullOrWhiteSpace(embed.Author.Url)) - { - @embed.Author.Name - } - else - { - @embed.Author.Name - } - + if (!string.IsNullOrWhiteSpace(embed.Author.Url)) + { + +
@embed.Author.Name
+
+ } + else + { +
@embed.Author.Name
+ } }
} diff --git a/DiscordChatExporter.Core/Exporting/Writers/Html/PreambleTemplate.cshtml b/DiscordChatExporter.Core/Exporting/Writers/Html/PreambleTemplate.cshtml index 9e9d474..6ca57b5 100644 --- a/DiscordChatExporter.Core/Exporting/Writers/Html/PreambleTemplate.cshtml +++ b/DiscordChatExporter.Core/Exporting/Writers/Html/PreambleTemplate.cshtml @@ -415,7 +415,7 @@ flex: 1; } - .chatlog__embed-author { + .chatlog__embed-author-container { display: flex; margin-bottom: 0.3rem; align-items: center; @@ -429,7 +429,7 @@ } .chatlog__embed-author { - color: @Themed("#ffffff", "#4f545c") + color: @Themed("#ffffff", "#4f545c"); font-size: 0.875rem; font-weight: 600; direction: ltr;