From fc6cfcfcc692b832c25362cb0f3d6e51d10b9c49 Mon Sep 17 00:00:00 2001 From: Emily <89871431+emillly-b@users.noreply.github.com> Date: Mon, 18 Oct 2021 11:18:23 -0500 Subject: [PATCH] Fix RTL rendering in HTML exports (#727) --- .../Exporting/Writers/Html/PreambleTemplate.cshtml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/DiscordChatExporter.Core/Exporting/Writers/Html/PreambleTemplate.cshtml b/DiscordChatExporter.Core/Exporting/Writers/Html/PreambleTemplate.cshtml index 44874d7..40950ef 100644 --- a/DiscordChatExporter.Core/Exporting/Writers/Html/PreambleTemplate.cshtml +++ b/DiscordChatExporter.Core/Exporting/Writers/Html/PreambleTemplate.cshtml @@ -280,6 +280,7 @@ .chatlog__reference-edited-timestamp { margin-left: 0.25em; font-size: 0.8em; + unicode-bidi: bidi-override; color: @Themed("rgba(255, 255, 255, 0.2)", "#747f8d"); } @@ -299,6 +300,7 @@ .chatlog__messages { grid-column: 2; min-width: 50%; + direction: ltr; } .chatlog__author-name { @@ -309,6 +311,8 @@ .chatlog__timestamp { margin-left: 0.3em; font-size: 0.75em; + direction: ltr; + unicode-bidi: bidi-override; color: @Themed("rgba(255, 255, 255, 0.2)", "#747f8d"); } @@ -478,6 +482,8 @@ .chatlog__embed-author-name { font-size: 0.875em; font-weight: 600; + direction: ltr; + unicode-bidi: bidi-override; color: @Themed("#ffffff", "#4f545c") }