# HG changeset patch # User Goffi # Date 1634829579 -7200 # Node ID e982a05d43b193a6295464bd30e9568f734d9256 # Parent d28816a65b7f2e56a0f2d249aca632f9d4f52339 blog/item, css: fix `white-space` for text content diff -r d28816a65b7f -r e982a05d43b1 sat_templates/templates/bulma/blog/item.html --- a/sat_templates/templates/bulma/blog/item.html Fri Oct 15 18:02:51 2021 +0200 +++ b/sat_templates/templates/bulma/blog/item.html Thu Oct 21 17:19:39 2021 +0200 @@ -58,9 +58,13 @@ {% endif %}

-

- {{- item.content_xhtml|safe if item.content_xhtml is defined else item.content|urlize -}} -

+ {% if item.content_xhtml is defined %} + {{item.content_xhtml|safe}} + {% else %} +

+ {{- item.content|urlize -}} +

+ {% endif %} {% for comments_data in item.comments %} {% for item in comments_data['items'] %} {% include 'blog/item.html' %} diff -r d28816a65b7f -r e982a05d43b1 sat_templates/templates/bulma/static/styles.css --- a/sat_templates/templates/bulma/static/styles.css Fri Oct 15 18:02:51 2021 +0200 +++ b/sat_templates/templates/bulma/static/styles.css Thu Oct 21 17:19:39 2021 +0200 @@ -102,6 +102,11 @@ border: 0 !important; } +.is-text-content { + white-space: break-spaces; +} + + a.is-wrapping { line-height: 0; }