mirror of
https://github.com/thelounge/thelounge
synced 2024-09-22 15:11:56 +00:00
Optimized notification dot state
This commit is contained in:
parent
d1648823c3
commit
0fb462c88e
2 changed files with 3 additions and 2 deletions
|
@ -499,7 +499,7 @@ kbd {
|
|||
transition: opacity 0.2s;
|
||||
}
|
||||
|
||||
#viewport .lt.notified::after {
|
||||
#viewport.notified .lt::after {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
const $ = require("jquery");
|
||||
const escape = require("css.escape");
|
||||
const input = $("#input");
|
||||
const viewport = $("#viewport");
|
||||
|
||||
var serverHash = -1; // eslint-disable-line no-var
|
||||
var lastMessageId = -1; // eslint-disable-line no-var
|
||||
|
@ -105,7 +106,7 @@ function toggleNotificationMarkers(newState) {
|
|||
}
|
||||
|
||||
// Toggles a dot on the menu icon when there are unread notifications
|
||||
$("#viewport .lt").toggleClass("notified", newState);
|
||||
viewport.toggleClass("notified", newState);
|
||||
}
|
||||
|
||||
function confirmExit() {
|
||||
|
|
Loading…
Reference in a new issue