Give in and add fixed thread watcher option

This commit is contained in:
seaweedchan 2013-05-11 04:31:02 -07:00
parent 8302329b4c
commit f0f1fdb0b5
7 changed files with 36 additions and 8 deletions

View File

@ -1,5 +1,5 @@
/*
* 4chan X - Version 1.2.1 - 2013-05-10
* 4chan X - Version 1.2.1 - 2013-05-11
*
* Licensed under the MIT license.
* https://github.com/seaweedchan/4chan-x/blob/master/LICENSE

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -233,6 +233,10 @@ Config =
true
'Bookmark threads.'
]
'Fixed Thread Watcher': [
true
'Thread watcher scrolls with you on the page'
]
'Persistent Thread Watcher': [
false
'Opens the thread watcher by default.'

View File

@ -68,7 +68,6 @@ a {
#fourchanx-settings,
#qp, #ihover,
#navlinks, .fixed #header-bar,
#watcher,
:root.float #updater,
:root.float #thread-stats,
#qr {
@ -445,6 +444,9 @@ a.hide-announcement {
}
/* Thread Watcher */
#watcher {
position: absolute;
}
#watcher {
padding-bottom: 3px;
overflow: hidden;
@ -453,6 +455,13 @@ a.hide-announcement {
max-height: 92%;
overflow-y: auto;
}
:root.fixed-watcher #watcher {
position: fixed;
}
:root:not(.fixed-watcher) #watcher:not(:hover) {
max-height: 210px;
overflow-y: hidden;
}
#watcher > .move {
padding-top: 3px;
}

View File

@ -14,6 +14,9 @@ ThreadWatcher =
$.sync 'WatchedThreads', @refresh
$.on sc, 'click', @toggleWatcher
$.on $('.move>.close', ThreadWatcher.dialog), 'click', @toggleWatcher
if Conf['Fixed Thread Watcher']
$.addClass doc, 'fixed-watcher'
Header.addShortcut sc