Highlight thread watcher icon when there are unread replies and the thread watcher is hidden.
This commit is contained in:
parent
d189e1beed
commit
9737cb47d5
@ -70,7 +70,7 @@
|
||||
}
|
||||
|
||||
/* Thread Watcher */
|
||||
:root.burichan .replies-quoting-you > a {
|
||||
:root.burichan .replies-quoting-you > a, :root.burichan #watcher-link.disabled.replies-quoting-you {
|
||||
color: #F00;
|
||||
}
|
||||
|
||||
|
||||
@ -70,7 +70,7 @@
|
||||
}
|
||||
|
||||
/* Thread Watcher */
|
||||
:root.futaba .replies-quoting-you > a {
|
||||
:root.futaba .replies-quoting-you > a, :root.futaba #watcher-link.disabled.replies-quoting-you {
|
||||
color: #F00;
|
||||
}
|
||||
|
||||
|
||||
@ -78,7 +78,7 @@
|
||||
}
|
||||
|
||||
/* Thread Watcher */
|
||||
:root.photon .replies-quoting-you > a {
|
||||
:root.photon .replies-quoting-you > a, :root.photon #watcher-link.disabled.replies-quoting-you {
|
||||
color: #00F !important;
|
||||
}
|
||||
|
||||
|
||||
@ -269,7 +269,7 @@ audio.controls-added {
|
||||
content: "]\\00a0";
|
||||
}
|
||||
.dead-thread,
|
||||
.disabled {
|
||||
.disabled:not(.replies-quoting-you) {
|
||||
opacity: .45;
|
||||
}
|
||||
#shortcuts {
|
||||
|
||||
@ -87,7 +87,7 @@
|
||||
}
|
||||
|
||||
/* Thread Watcher */
|
||||
:root.tomorrow .replies-quoting-you > a {
|
||||
:root.tomorrow .replies-quoting-you > a, :root.tomorrow #watcher-link.disabled.replies-quoting-you {
|
||||
color: #F00 !important;
|
||||
}
|
||||
|
||||
|
||||
@ -71,7 +71,7 @@
|
||||
}
|
||||
|
||||
/* Thread Watcher */
|
||||
:root.yotsuba-b .replies-quoting-you > a {
|
||||
:root.yotsuba-b .replies-quoting-you > a, :root.yotsuba-b #watcher-link.disabled.replies-quoting-you {
|
||||
color: #F00;
|
||||
}
|
||||
|
||||
|
||||
@ -70,7 +70,7 @@
|
||||
}
|
||||
|
||||
/* Thread Watcher */
|
||||
:root.yotsuba .replies-quoting-you > a {
|
||||
:root.yotsuba .replies-quoting-you > a, :root.yotsuba #watcher-link.disabled.replies-quoting-you {
|
||||
color: #F00;
|
||||
}
|
||||
|
||||
|
||||
@ -294,6 +294,8 @@ ThreadWatcher =
|
||||
toggler.title = "#{helper[1]} Thread"
|
||||
$[helper[0]] thread.catalogView.nodes.root, 'watched' if thread.catalogView
|
||||
|
||||
ThreadWatcher.shortcut.classList.toggle 'replies-quoting-you', !!$('.replies-quoting-you', ThreadWatcher.dialog)
|
||||
|
||||
for refresher in ThreadWatcher.menu.refreshers
|
||||
refresher()
|
||||
|
||||
@ -317,6 +319,7 @@ ThreadWatcher =
|
||||
if line = $ "#watched-threads > [data-full-i-d='#{boardID}.#{threadID}']", ThreadWatcher.dialog
|
||||
newLine = ThreadWatcher.makeLine boardID, threadID, data
|
||||
$.replace line, newLine
|
||||
ThreadWatcher.shortcut.classList.toggle 'replies-quoting-you', !!$('.replies-quoting-you', ThreadWatcher.dialog)
|
||||
else
|
||||
ThreadWatcher.refresh()
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user