Restore hiding of extra linebreaks in catalog. #1150
Show them at reduced size on hover.
This commit is contained in:
parent
bf39756e00
commit
2d9abe5d22
@ -219,6 +219,9 @@ Build =
|
|||||||
container = $.el 'div', <%= readHTML('CatalogThread.html') %>
|
container = $.el 'div', <%= readHTML('CatalogThread.html') %>
|
||||||
$.before thread.OP.nodes.info, [container.childNodes...]
|
$.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',
|
root = $.el 'div',
|
||||||
className: 'thread catalog-thread'
|
className: 'thread catalog-thread'
|
||||||
id: "t#{thread}"
|
id: "t#{thread}"
|
||||||
|
|||||||
@ -827,9 +827,11 @@ div[data-checked="false"] > .suboption-list {
|
|||||||
.catalog-container:not(:hover) > * > .file,
|
.catalog-container:not(:hover) > * > .file,
|
||||||
.catalog-container:not(:hover) > * > .postInfo > :not(.subject),
|
.catalog-container:not(:hover) > * > .postInfo > :not(.subject),
|
||||||
.catalog-container:not(:hover) > * > .catalog-replies,
|
.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 > * > .file,
|
||||||
:root:not(.catalog-hover-expand) .catalog-container > * > .postInfo > :not(.subject),
|
: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 > * > .catalog-replies,
|
||||||
|
:root:not(.catalog-hover-expand) .catalog-container .extra-linebreak,
|
||||||
.catalog-thread > .catalog-container > :not(.catalog-post),
|
.catalog-thread > .catalog-container > :not(.catalog-post),
|
||||||
.catalog-post > .file > :not(.fileText),
|
.catalog-post > .file > :not(.fileText),
|
||||||
.catalog-post > * > .fileText > :not(:first-child),
|
.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) {
|
:root.catalog-hover-expand .catalog-container:hover > * > .postMessage:not(:empty) {
|
||||||
padding-top: .3em;
|
padding-top: .3em;
|
||||||
}
|
}
|
||||||
|
.catalog-post .extra-linebreak {
|
||||||
|
content: ''; /* makes this work in Blink/WebKit */
|
||||||
|
display: block;
|
||||||
|
margin-top: .3em;
|
||||||
|
}
|
||||||
.catalog-reply {
|
.catalog-reply {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user