Give in and add fixed thread watcher option
This commit is contained in:
parent
8302329b4c
commit
f0f1fdb0b5
2
LICENSE
2
LICENSE
@ -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
@ -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.'
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user