Fix slideout thread watcher alignment

This commit is contained in:
Zixaphir 2013-06-02 13:55:10 -07:00
parent 960f8022a4
commit 50cd57d92e
6 changed files with 15 additions and 35 deletions

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

@ -75,7 +75,7 @@ div.navLinks > a:first-of-type::after {
}
#boardNavDesktopFoot,
#globalMessage,
#watcher {
.slideout-watcher #watcher.dialog {
<%= sizing %>: border-box;
width: 230px !important;
#{align}: 18px !important;

View File

@ -782,12 +782,12 @@ th {
width: 299px;
}
.slideout-watcher.sidebar-location-right #watcher {
left: auto;
right: 2px;
left: auto !important;
right: 2px !important;
}
.slideout-watcher.sidebar-location-left #watcher {
right: auto;
left: 2px;
right: auto !important;
left: 2px !important;
}
.slideout-watcher #watcher .move {
cursor: default;

View File

@ -3,11 +3,10 @@ ThreadWatcher =
return unless Conf['Thread Watcher']
@dialog = UI.dialog 'watcher', 'top: 50px; left: 0px;',
'<div class=move>Thread Watcher<a class=close href=javascript:;>✖</a></div>'
'<div class=move>Thread Watcher</div>'
$.on d, 'QRPostSuccessful', @cb.post
$.sync 'WatchedThreads', @refresh
$.on $('.move>.close', ThreadWatcher.dialog), 'click', @toggleWatcher
$.ready ->
@ -62,10 +61,6 @@ ThreadWatcher =
$.rmClass favicon, 'watched'
return
toggleWatcher: ->
$.toggleClass ThreadWatcher.shortcut, 'disabled'
ThreadWatcher.dialog.hidden = !ThreadWatcher.dialog.hidden
cb:
toggle: ->
ThreadWatcher.toggle Get.postFromNode(@).thread