From a6daededbfb8a6f66e8bf7193de52e98fcc3de1d Mon Sep 17 00:00:00 2001 From: Yanislav Igonin Date: Sat, 20 Nov 2021 22:57:14 +0200 Subject: [PATCH] feat: add line break for posts --- static/styles/index.css | 2 +- static/styles/post.css | 3 ++- templates/thread.html | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/static/styles/index.css b/static/styles/index.css index 00426ea..8fb0bdb 100644 --- a/static/styles/index.css +++ b/static/styles/index.css @@ -1,3 +1,3 @@ #pagesList { flex-wrap: wrap -} \ No newline at end of file +} diff --git a/static/styles/post.css b/static/styles/post.css index df678d0..3344e11 100644 --- a/static/styles/post.css +++ b/static/styles/post.css @@ -16,5 +16,6 @@ width: 100%; } -.data-container { +.line-break { + white-space: pre-line; } \ No newline at end of file diff --git a/templates/thread.html b/templates/thread.html index f463c2d..5d7eedb 100644 --- a/templates/thread.html +++ b/templates/thread.html @@ -45,8 +45,8 @@ {{ end }} -
-

{{$Post.Text}}

+
+

{{$Post.Text}}