From ffa1023c50fb662d12a7a4c0776a6fce6103cf65 Mon Sep 17 00:00:00 2001 From: Alexey Golub Date: Sat, 10 Feb 2018 18:02:36 +0200 Subject: [PATCH] Improve word wrapping in messages Doesn't break words. Fixes #31. --- DiscordChatExporter.Core/Resources/ExportService/DarkTheme.css | 3 ++- .../Resources/ExportService/LightTheme.css | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/DiscordChatExporter.Core/Resources/ExportService/DarkTheme.css b/DiscordChatExporter.Core/Resources/ExportService/DarkTheme.css index 74c3ace..e873b18 100644 --- a/DiscordChatExporter.Core/Resources/ExportService/DarkTheme.css +++ b/DiscordChatExporter.Core/Resources/ExportService/DarkTheme.css @@ -95,6 +95,7 @@ img.msg-avatar { div.msg-right { flex: 1; margin-left: 20px; + min-width: 50%; } span.msg-user { @@ -117,7 +118,7 @@ span.msg-edited { div.msg-content { font-size: .9375em; padding-top: 5px; - word-break: break-all; + word-wrap: break-word; } div.msg-attachment { diff --git a/DiscordChatExporter.Core/Resources/ExportService/LightTheme.css b/DiscordChatExporter.Core/Resources/ExportService/LightTheme.css index 89876bb..3d2f81d 100644 --- a/DiscordChatExporter.Core/Resources/ExportService/LightTheme.css +++ b/DiscordChatExporter.Core/Resources/ExportService/LightTheme.css @@ -95,6 +95,7 @@ img.msg-avatar { div.msg-right { flex: 1; margin-left: 20px; + min-width: 50%; } span.msg-user { @@ -117,7 +118,7 @@ span.msg-edited { div.msg-content { font-size: .9375em; padding-top: 5px; - word-break: break-all; + word-wrap: break-word; } div.msg-attachment {