use CSS to hide <hr>s following hidden threads
This commit is contained in:
parent
e95c276c7c
commit
424922623c
@ -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
|
||||
|
||||
|
||||
@ -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
|
||||
|
||||
|
||||
@ -780,6 +780,9 @@ span.hide-announcement {
|
||||
.stub input {
|
||||
display: inline-block;
|
||||
}
|
||||
.thread[hidden] + hr {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* QR */
|
||||
:root.hide-original-post-form #postForm,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user