mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 14:00:21 +00:00
Make sure user icon matches in network list, window context menu, and nick context menu
This commit is contained in:
parent
c0869b05a3
commit
9436ba9301
2 changed files with 12 additions and 2 deletions
|
@ -230,7 +230,7 @@ kbd {
|
|||
#chat .lobby .title::before { content: "\f0a0"; /* http://fontawesome.io/icon/hdd-o/ */ }
|
||||
|
||||
#sidebar .chan.query::before,
|
||||
#chat .query .title::before { content: "\f0e6"; /* http://fontawesome.io/icon/comments-o/ */ }
|
||||
#chat .query .title::before { content: "\f007"; /* http://fontawesome.io/icon/user/ */ }
|
||||
|
||||
#sidebar .chan.channel::before,
|
||||
#chat .channel .title::before { content: "\f0f6"; /* http://fontawesome.io/icon/file-text-o/ */ }
|
||||
|
|
|
@ -83,8 +83,18 @@ $(function() {
|
|||
data: target.data("name"),
|
||||
});
|
||||
} else if (target.hasClass("chan")) {
|
||||
let itemClass;
|
||||
|
||||
if (target.hasClass("lobby")) {
|
||||
itemClass = "network";
|
||||
} else if (target.hasClass("query")) {
|
||||
itemClass = "user";
|
||||
} else {
|
||||
itemClass = "chan";
|
||||
}
|
||||
|
||||
output = templates.contextmenu_item({
|
||||
class: target.hasClass("lobby") ? "network" : "chan",
|
||||
class: itemClass,
|
||||
text: target.data("title"),
|
||||
data: target.data("target"),
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue