From c3f00cd6bcdc53548d364430e40cd8f1e998a492 Mon Sep 17 00:00:00 2001 From: Hannu Hartikainen Date: Tue, 8 Dec 2015 22:57:53 +0200 Subject: [PATCH] prevent "zalgo text" from exiting the message/bufferline For a review of what zalgo text is and how it works, see http://stackoverflow.com/q/6579844/659526 . Suffice to say it abuses unicode to create a vertical mess that goes over other lines of text. --- css/glowingbear.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/css/glowingbear.css b/css/glowingbear.css index a6d10d8..b46452f 100644 --- a/css/glowingbear.css +++ b/css/glowingbear.css @@ -29,6 +29,7 @@ td.prefix { border-right: 1px solid #444; } td.message { + overflow: hidden; vertical-align: top; width: 100%; padding: 1px 1px 1px 5px; @@ -772,7 +773,13 @@ img.emojione { padding-bottom: 0; } + #bufferlines tr.bufferline { + display: block; + overflow: hidden; + } + #bufferlines td.time { + display: inline-block; padding-right: 3px; font-size: 0.8em; }