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
|
threadRoot = thread.OP.nodes.root.parentNode
|
||||||
thread.isHidden = true
|
thread.isHidden = true
|
||||||
|
|
||||||
return threadRoot.hidden = threadRoot.nextElementSibling.hidden = true unless makeStub # <hr>
|
return threadRoot.hidden = true unless makeStub
|
||||||
|
|
||||||
ThreadHiding.makeStub thread, threadRoot
|
ThreadHiding.makeStub thread, threadRoot
|
||||||
|
|
||||||
|
|||||||
@ -332,7 +332,7 @@ Index =
|
|||||||
error: err
|
error: err
|
||||||
Main.handleErrors errors if errors
|
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
|
$.nodes Index.nodes
|
||||||
Main.callbackNodes Thread, threads
|
Main.callbackNodes Thread, threads
|
||||||
Main.callbackNodes Post, posts
|
Main.callbackNodes Post, posts
|
||||||
@ -443,7 +443,6 @@ Index =
|
|||||||
$.add result, [node, $.el 'hr'] while node = nodes[i++]
|
$.add result, [node, $.el 'hr'] while node = nodes[i++]
|
||||||
$.event 'IndexBuild', result.children
|
$.event 'IndexBuild', result.children
|
||||||
$.add Index.root, result
|
$.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
|
isSearching: false
|
||||||
|
|
||||||
|
|||||||
@ -780,6 +780,9 @@ span.hide-announcement {
|
|||||||
.stub input {
|
.stub input {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
.thread[hidden] + hr {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
/* QR */
|
/* QR */
|
||||||
:root.hide-original-post-form #postForm,
|
:root.hide-original-post-form #postForm,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user