use CSS to hide <hr>s following hidden threads

This commit is contained in:
ccd0 2014-06-15 10:31:39 -07:00
parent e95c276c7c
commit 424922623c
3 changed files with 5 additions and 3 deletions

View File

@ -197,7 +197,7 @@ ThreadHiding =
threadRoot = thread.OP.nodes.root.parentNode
thread.isHidden = true
return threadRoot.hidden = threadRoot.nextElementSibling.hidden = true unless makeStub # <hr>
return threadRoot.hidden = true unless makeStub
ThreadHiding.makeStub thread, threadRoot

View File

@ -332,7 +332,7 @@ Index =
error: err
Main.handleErrors errors if errors
# Add the threads and <hr>s in a container to make sure all features work.
# Add the threads in a container to make sure all features work.
$.nodes Index.nodes
Main.callbackNodes Thread, threads
Main.callbackNodes Post, posts
@ -443,7 +443,6 @@ Index =
$.add result, [node, $.el 'hr'] while node = nodes[i++]
$.event 'IndexBuild', result.children
$.add Index.root, result
$.rm hr for hr in $$ 'hr + hr', Index.root # Temp fix until I figure out where I fucked up
isSearching: false

View File

@ -780,6 +780,9 @@ span.hide-announcement {
.stub input {
display: inline-block;
}
.thread[hidden] + hr {
display: none;
}
/* QR */
:root.hide-original-post-form #postForm,