From e5bace17940fc49d59765f609071cde0fe65de13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Astori?= Date: Tue, 18 Jul 2017 00:37:45 -0400 Subject: [PATCH] Hide empty preview divs when there are no previews loaded --- client/css/style.css | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/css/style.css b/client/css/style.css index f2f3555c..ada6a2a4 100644 --- a/client/css/style.css +++ b/client/css/style.css @@ -1201,6 +1201,12 @@ kbd { display: inline-flex !important; } +/* Do not display an empty div when there are no previews. Useful for example in +part/quit messages where we don't load previews (adds a blank line otherwise) */ +#chat .preview:empty { + display: none; +} + #chat .count { background: #fafafa; height: 48px;