From 4ec00d0ec88c2f00f3d5099ed42bb54462ceccf7 Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Fri, 10 Mar 2023 16:33:56 +0200 Subject: [PATCH] Clean up CSS --- .../Exporting/MessageGroupTemplate.cshtml | 4 +- .../Exporting/PreambleTemplate.cshtml | 45 +++++++++++-------- 2 files changed, 29 insertions(+), 20 deletions(-) diff --git a/DiscordChatExporter.Core/Exporting/MessageGroupTemplate.cshtml b/DiscordChatExporter.Core/Exporting/MessageGroupTemplate.cshtml index 5aea81b..9dda498 100644 --- a/DiscordChatExporter.Core/Exporting/MessageGroupTemplate.cshtml +++ b/DiscordChatExporter.Core/Exporting/MessageGroupTemplate.cshtml @@ -455,7 +455,7 @@ embed.Url;
-
@@ -469,7 +469,7 @@
} diff --git a/DiscordChatExporter.Core/Exporting/PreambleTemplate.cshtml b/DiscordChatExporter.Core/Exporting/PreambleTemplate.cshtml index 31952fa..71f2549 100644 --- a/DiscordChatExporter.Core/Exporting/PreambleTemplate.cshtml +++ b/DiscordChatExporter.Core/Exporting/PreambleTemplate.cshtml @@ -622,24 +622,6 @@ font-weight: 500; } - .chatlog__embed-generic-image { - object-fit: contain; - object-position: left; - max-width: 45vw; - max-height: 500px; - vertical-align: top; - border-radius: 3px; - } - - .chatlog__embed-generic-gifv { - object-fit: contain; - object-position: left; - max-width: 45vw; - max-height: 500px; - vertical-align: top; - border-radius: 3px; - } - .chatlog__embed-invite-container { min-width: 320px; padding: 0.6rem 0.7rem; @@ -690,6 +672,33 @@ font-weight: 600; } + .chatlog__embed-generic-image { + object-fit: contain; + object-position: left; + max-width: 45vw; + max-height: 500px; + vertical-align: top; + border-radius: 3px; + } + + .chatlog__embed-generic-video { + object-fit: contain; + object-position: left; + max-width: 45vw; + max-height: 500px; + vertical-align: top; + border-radius: 3px; + } + + .chatlog__embed-generic-gifv { + object-fit: contain; + object-position: left; + max-width: 45vw; + max-height: 500px; + vertical-align: top; + border-radius: 3px; + } + .chatlog__embed-spotify { border: 0; }