changeset 235:f5f428a50c10

chat, ticket: use `pre-wrap` instead of `pre` for whitespaces
author Goffi <goffi@goffi.org>
date Fri, 29 May 2020 21:58:19 +0200
parents b54526baef6b
children 7345ccb7f9df
files sat_templates/templates/bulma/chat/message.html sat_templates/templates/bulma/static/styles.css sat_templates/templates/bulma/ticket/overview.html
diffstat 3 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/sat_templates/templates/bulma/chat/message.html	Tue May 19 18:41:14 2020 +0200
+++ b/sat_templates/templates/bulma/chat/message.html	Fri May 29 21:58:19 2020 +0200
@@ -23,7 +23,7 @@
                     </div>
                 </nav>
             {% endif -%}
-            <p class="msg_body">
+            <p class="msg_body has-whitespace-pre-wrap">
             {{- msg.html or (msg.text|urlize(nofollow=true, target="_blank")) -}}
             </p>
         </div>
--- a/sat_templates/templates/bulma/static/styles.css	Tue May 19 18:41:14 2020 +0200
+++ b/sat_templates/templates/bulma/static/styles.css	Fri May 29 21:58:19 2020 +0200
@@ -3,8 +3,8 @@
   --photo-height--poster: 500px;
 }
 
-.has-whitespace-pre {
-    white-space: pre;
+.has-whitespace-pre-wrap {
+    white-space: pre-wrap;
 }
 
 .is-avatar {
--- a/sat_templates/templates/bulma/ticket/overview.html	Tue May 19 18:41:14 2020 +0200
+++ b/sat_templates/templates/bulma/ticket/overview.html	Fri May 29 21:58:19 2020 +0200
@@ -27,7 +27,7 @@
                field_class_map={
                    'title': 'has-text-weight-bold',
                    'labels': 'tag is-rounded x-is-hoverable',
-                   'id': 'has-text-grey-light is-size-7 has-whitespace-pre',
+                   'id': 'has-text-grey-light is-size-7 has-whitespace-pre-wrap',
                    'author': 'is-size-7'
                },
                on_click=on_ticket_click)