Revert "move thumb class to link"
This reverts commit a55daa2736c56a164e9c38b7534912534471d222.
This commit is contained in:
parent
45a22ec7da
commit
8bff3530d5
@ -329,9 +329,9 @@ Build =
|
|||||||
imgClass = 'no-file'
|
imgClass = 'no-file'
|
||||||
|
|
||||||
thumb = if imgClass
|
thumb = if imgClass
|
||||||
<%= html('<img src="${src}" class="${imgClass}">') %>
|
<%= html('<img src="${src}" class="thumb ${imgClass}">') %>
|
||||||
else
|
else
|
||||||
<%= html('<img src="${src}" width="${imgWidth}" height="${imgHeight}">') %>
|
<%= html('<img src="${src}" class="thumb" width="${imgWidth}" height="${imgHeight}">') %>
|
||||||
|
|
||||||
postCount = data.replies + 1
|
postCount = data.replies + 1
|
||||||
fileCount = data.images + !!data.ext
|
fileCount = data.images + !!data.ext
|
||||||
@ -345,7 +345,7 @@ Build =
|
|||||||
root = $.el 'div',
|
root = $.el 'div',
|
||||||
className: 'catalog-thread'
|
className: 'catalog-thread'
|
||||||
$.extend root, <%= html(
|
$.extend root, <%= html(
|
||||||
'<a href="/${thread.board}/thread/${thread.ID}" class="thumb">' +
|
'<a href="/${thread.board}/thread/${thread.ID}">' +
|
||||||
'&{thumb}' +
|
'&{thumb}' +
|
||||||
'</a>' +
|
'</a>' +
|
||||||
'<div class="thread-stats" title="Post count / File count / Page count">' +
|
'<div class="thread-stats" title="Post count / File count / Page count">' +
|
||||||
|
|||||||
@ -185,7 +185,7 @@ Index =
|
|||||||
$.on @nodes.thumb, 'click', Index.onClick
|
$.on @nodes.thumb, 'click', Index.onClick
|
||||||
onClick: (e) ->
|
onClick: (e) ->
|
||||||
return if e.button isnt 0
|
return if e.button isnt 0
|
||||||
thread = g.threads[@parentNode.dataset.fullID]
|
thread = g.threads[@parentNode.parentNode.dataset.fullID]
|
||||||
if e.shiftKey
|
if e.shiftKey
|
||||||
Index.toggleHide thread
|
Index.toggleHide thread
|
||||||
else if e.altKey
|
else if e.altKey
|
||||||
|
|||||||
@ -516,30 +516,30 @@ hr + div.center:not(.ad-cnt):not(.topad):not(.middlead):not(.bottomad) {
|
|||||||
word-break: break-word;
|
word-break: break-word;
|
||||||
vertical-align: top;
|
vertical-align: top;
|
||||||
}
|
}
|
||||||
.thumb {
|
.catalog-thread > a {
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
.thumb > img {
|
.thumb {
|
||||||
max-width: 150px;
|
max-width: 150px;
|
||||||
max-height: 150px;
|
max-height: 150px;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
box-shadow: 0 0 5px rgba(0, 0, 0, .25);
|
box-shadow: 0 0 5px rgba(0, 0, 0, .25);
|
||||||
}
|
}
|
||||||
.thumb:not(.deleted-file):not(.no-file) > img {
|
.thumb:not(.deleted-file):not(.no-file) {
|
||||||
min-width: 30px;
|
min-width: 30px;
|
||||||
min-height: 30px;
|
min-height: 30px;
|
||||||
}
|
}
|
||||||
.thumb.spoiler-file > img {
|
.thumb.spoiler-file {
|
||||||
width: 100px;
|
width: 100px;
|
||||||
height: 100px;
|
height: 100px;
|
||||||
}
|
}
|
||||||
.thumb.deleted-file > img {
|
.thumb.deleted-file {
|
||||||
width: 127px;
|
width: 127px;
|
||||||
height: 13px;
|
height: 13px;
|
||||||
padding: 20px 11px;
|
padding: 20px 11px;
|
||||||
}
|
}
|
||||||
.thumb.no-file > img {
|
.thumb.no-file {
|
||||||
width: 77px;
|
width: 77px;
|
||||||
height: 13px;
|
height: 13px;
|
||||||
padding: 20px 36px;
|
padding: 20px 36px;
|
||||||
@ -861,8 +861,8 @@ span.hide-announcement {
|
|||||||
.filter-highlight > .reply {
|
.filter-highlight > .reply {
|
||||||
box-shadow: -5px 0 rgba(255, 0, 0, .5);
|
box-shadow: -5px 0 rgba(255, 0, 0, .5);
|
||||||
}
|
}
|
||||||
.pinned .thumb > img,
|
.pinned .thumb,
|
||||||
.filter-highlight .thumb > img {
|
.filter-highlight .thumb {
|
||||||
border: 2px solid rgba(255, 0, 0, .5);
|
border: 2px solid rgba(255, 0, 0, .5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user