From 5378cd8602bdc898bfb474b3e8f35807f97b29d3 Mon Sep 17 00:00:00 2001 From: codedust Date: Mon, 7 Sep 2015 22:32:15 +0200 Subject: [PATCH] Fix multiple spaces not beeing displayed in message bubbles Multiple spaces (" ") are displayed by browsers as a single whitespace character if 'white-space: pre-wrap;' is not set. --- stylesheets/_conversation.scss | 2 ++ stylesheets/manifest.css | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/stylesheets/_conversation.scss b/stylesheets/_conversation.scss index 48d48924..06e72b8b 100644 --- a/stylesheets/_conversation.scss +++ b/stylesheets/_conversation.scss @@ -179,6 +179,8 @@ .content { -webkit-user-select: text; + white-space: pre-wrap; + a { word-break: break-all } diff --git a/stylesheets/manifest.css b/stylesheets/manifest.css index 1cccbac1..9df669be 100644 --- a/stylesheets/manifest.css +++ b/stylesheets/manifest.css @@ -624,7 +624,8 @@ input.search { border-bottom: 6px solid transparent; } .message-detail .bubble .content, .message-list .bubble .content { - -webkit-user-select: text; } + -webkit-user-select: text; + white-space: pre-wrap; } .message-detail .bubble .content a, .message-list .bubble .content a { word-break: break-all; }