From 75a63534452519f711c6b4d2426f36caead21b7a Mon Sep 17 00:00:00 2001 From: the-djmaze <> Date: Fri, 17 Feb 2023 13:35:59 +0100 Subject: [PATCH] Remove CSS white-space from messages to prevent annoying side scrolling --- dev/Common/Html.js | 1 + 1 file changed, 1 insertion(+) diff --git a/dev/Common/Html.js b/dev/Common/Html.js index 92cc16338..bb2ff7f0d 100644 --- a/dev/Common/Html.js +++ b/dev/Common/Html.js @@ -100,6 +100,7 @@ const cleanCSS = source => source.trim().replace(/-(ms|webkit)-[^;]+(;|$)/g, '') + .replace(/white-space[^;]+(;|$)/g, '') // Drop Microsoft Office style properties // .replace(/mso-[^:;]+:[^;]+/gi, '') ,