Fix code tags, exif data in catalog.

Fixes bug from e45eaea49f775bcb59727e9657e718ac3dcd5421.
This commit is contained in:
ccd0 2016-09-22 06:12:42 -07:00
parent 4a8ee7e3a4
commit 9b33834bfc
2 changed files with 17 additions and 18 deletions

View File

@ -223,21 +223,6 @@ Build =
root.dataset.fullID = thread.fullID
$.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
$.add $('.catalog-icons', root), $.el 'img',
src: "#{staticPath}sticky#{gifIcon}"

View File

@ -801,10 +801,24 @@ div[data-checked="false"] > .suboption-list {
.board_tg .catalog-thread > .comment > b {
font-weight: normal;
}
.catalog-code {
background-color: #FFF;
display: inline-block;
.catalog-thread .prettyprinted {
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 {
content: '';