From 86bd536f42ba05a55c45db6420d7fcfd74264fc6 Mon Sep 17 00:00:00 2001 From: Yanislav Igonin Date: Sun, 21 Nov 2021 09:14:09 +0200 Subject: [PATCH] fix: word wrap for multiline posts --- static/styles/post.css | 4 ++++ templates/thread.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/static/styles/post.css b/static/styles/post.css index 3344e11..d968dd2 100644 --- a/static/styles/post.css +++ b/static/styles/post.css @@ -18,4 +18,8 @@ .line-break { white-space: pre-line; +} + +.word-wrap { + word-break: break-word; } \ No newline at end of file diff --git a/templates/thread.html b/templates/thread.html index 5d7eedb..ac91a42 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -46,7 +46,7 @@ {{ end }}
-

{{$Post.Text}}

+

{{$Post.Text}}