Merge pull request #1347 from thelounge/astorije/fix-empty-preview

Hide empty preview divs when there are no previews loaded
This commit is contained in:
Pavel Djundik 2017-07-18 15:44:51 +03:00 committed by GitHub
commit 488dd7aeb4
1 changed files with 6 additions and 0 deletions

View File

@ -1201,6 +1201,12 @@ kbd {
display: inline-flex !important; 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 { #chat .count {
background: #fafafa; background: #fafafa;
height: 48px; height: 48px;