Hide empty preview divs when there are no previews loaded

This commit is contained in:
Jérémie Astori 2017-07-18 00:37:45 -04:00
parent ce0e460368
commit e5bace1794
No known key found for this signature in database
GPG Key ID: B9A4F245CD67BDE8

View File

@ -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;