Restore hiding of extra linebreaks in catalog. #1150

Show them at reduced size on hover.
This commit is contained in:
ccd0 2016-10-13 17:20:43 -07:00
parent bf39756e00
commit 2d9abe5d22
2 changed files with 10 additions and 0 deletions

View File

@ -219,6 +219,9 @@ Build =
container = $.el 'div', <%= readHTML('CatalogThread.html') %>
$.before thread.OP.nodes.info, [container.childNodes...]
for br in $$('br', thread.OP.nodes.comment) when br.previousSibling and br.previousSibling.nodeName is 'BR'
$.addClass br, 'extra-linebreak'
root = $.el 'div',
className: 'thread catalog-thread'
id: "t#{thread}"

View File

@ -827,9 +827,11 @@ div[data-checked="false"] > .suboption-list {
.catalog-container:not(:hover) > * > .file,
.catalog-container:not(:hover) > * > .postInfo > :not(.subject),
.catalog-container:not(:hover) > * > .catalog-replies,
.catalog-container:not(:hover) .extra-linebreak,
:root:not(.catalog-hover-expand) .catalog-container > * > .file,
:root:not(.catalog-hover-expand) .catalog-container > * > .postInfo > :not(.subject),
:root:not(.catalog-hover-expand) .catalog-container > * > .catalog-replies,
:root:not(.catalog-hover-expand) .catalog-container .extra-linebreak,
.catalog-thread > .catalog-container > :not(.catalog-post),
.catalog-post > .file > :not(.fileText),
.catalog-post > * > .fileText > :not(:first-child),
@ -880,6 +882,11 @@ div[data-checked="false"] > .suboption-list {
:root.catalog-hover-expand .catalog-container:hover > * > .postMessage:not(:empty) {
padding-top: .3em;
}
.catalog-post .extra-linebreak {
content: ''; /* makes this work in Blink/WebKit */
display: block;
margin-top: .3em;
}
.catalog-reply {
text-align: left;
white-space: nowrap;