Merge pull request #1816 from MaxLeiter/fix-network-context

Proper network icon in context menu
This commit is contained in:
Jérémie Astori 2017-12-09 18:17:38 -05:00 committed by GitHub
commit a8fb892873
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -225,6 +225,7 @@ kbd {
.context-menu-close::before { content: "\f00d"; /* http://fontawesome.io/icon/times/ */ }
.context-menu-list::before { content: "\f03a"; /* http://fontawesome.io/icon/list/ */ }
.context-menu-network::before,
#sidebar .chan.lobby::before,
#chat .lobby .title::before { content: "\f0a0"; /* http://fontawesome.io/icon/hdd-o/ */ }

View file

@ -84,7 +84,7 @@ $(function() {
});
} else if (target.hasClass("chan")) {
output = templates.contextmenu_item({
class: "chan",
class: target.hasClass("lobby") ? "network" : "chan",
text: target.data("title"),
data: target.data("target"),
});