Fix code tags, exif data in catalog.
Fixes bug from e45eaea49f775bcb59727e9657e718ac3dcd5421.
This commit is contained in:
parent
4a8ee7e3a4
commit
9b33834bfc
@ -223,21 +223,6 @@ Build =
|
|||||||
root.dataset.fullID = thread.fullID
|
root.dataset.fullID = thread.fullID
|
||||||
$.addClass root, thread.OP.highlights... if thread.OP.highlights
|
$.addClass root, thread.OP.highlights... if thread.OP.highlights
|
||||||
|
|
||||||
for quote in $$ '.quotelink', root.lastElementChild
|
|
||||||
href = quote.getAttribute 'href'
|
|
||||||
quote.href = "/#{thread.board}/thread/#{thread.ID}" + href if href[0] is '#'
|
|
||||||
|
|
||||||
for exif in $$ '.abbr, .exif', root.lastElementChild
|
|
||||||
$.rm exif
|
|
||||||
|
|
||||||
for pp in $$ '.prettyprint', root.lastElementChild
|
|
||||||
cc = $.el 'span', className: 'catalog-code'
|
|
||||||
$.add cc, [pp.childNodes...]
|
|
||||||
$.replace pp, cc
|
|
||||||
|
|
||||||
for br in $$ 'br', root.lastElementChild when br.previousSibling?.nodeName is 'BR'
|
|
||||||
$.rm br
|
|
||||||
|
|
||||||
if thread.isSticky
|
if thread.isSticky
|
||||||
$.add $('.catalog-icons', root), $.el 'img',
|
$.add $('.catalog-icons', root), $.el 'img',
|
||||||
src: "#{staticPath}sticky#{gifIcon}"
|
src: "#{staticPath}sticky#{gifIcon}"
|
||||||
|
|||||||
@ -801,10 +801,24 @@ div[data-checked="false"] > .suboption-list {
|
|||||||
.board_tg .catalog-thread > .comment > b {
|
.board_tg .catalog-thread > .comment > b {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
}
|
}
|
||||||
.catalog-code {
|
.catalog-thread .prettyprinted {
|
||||||
background-color: #FFF;
|
|
||||||
display: inline-block;
|
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
.catalog-thread table.exif {
|
||||||
|
border-collapse: collapse;
|
||||||
|
}
|
||||||
|
.catalog-thread table.exif[style*="display: block;"] {
|
||||||
|
display: inline-block !important;
|
||||||
|
}
|
||||||
|
.catalog-thread table.exif, .catalog-thread table.exif > tbody {
|
||||||
|
background-color: inherit;
|
||||||
|
}
|
||||||
|
.catalog-thread table.exif, .catalog-thread table.exif td {
|
||||||
|
min-width: 0;
|
||||||
|
}
|
||||||
|
.catalog-thread table.exif td {
|
||||||
|
padding-top: 1px;
|
||||||
}
|
}
|
||||||
:root.hats-enabled .catalog-thread::after {
|
:root.hats-enabled .catalog-thread::after {
|
||||||
content: '';
|
content: '';
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user