fix WerkTyme after thumb class revert
This commit is contained in:
parent
8bff3530d5
commit
98292d76f9
@ -182,10 +182,10 @@ Index =
|
|||||||
return unless Index.db.get {boardID: @board.ID, threadID: @ID}
|
return unless Index.db.get {boardID: @board.ID, threadID: @ID}
|
||||||
@pin()
|
@pin()
|
||||||
catalogNode: ->
|
catalogNode: ->
|
||||||
$.on @nodes.thumb, 'click', Index.onClick
|
$.on @nodes.thumb.parentNode, 'click', Index.onClick
|
||||||
onClick: (e) ->
|
onClick: (e) ->
|
||||||
return if e.button isnt 0
|
return if e.button isnt 0
|
||||||
thread = g.threads[@parentNode.parentNode.dataset.fullID]
|
thread = g.threads[@parentNode.dataset.fullID]
|
||||||
if e.shiftKey
|
if e.shiftKey
|
||||||
Index.toggleHide thread
|
Index.toggleHide thread
|
||||||
else if e.altKey
|
else if e.altKey
|
||||||
|
|||||||
@ -834,16 +834,18 @@ span.hide-announcement {
|
|||||||
}
|
}
|
||||||
/* Werk Tyme */
|
/* Werk Tyme */
|
||||||
:root.werkTyme .postContainer:not(.noFile) .fileThumb,
|
:root.werkTyme .postContainer:not(.noFile) .fileThumb,
|
||||||
.werkTyme .thumb > img,
|
:root.werkTyme .thumb:not(.deleted-file):not(.no-file),
|
||||||
:root:not(.werkTyme) .thumb > span {
|
:root:not(.werkTyme) .werkTyme-filename {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
.werkTyme .thumb {
|
.werkTyme-filename {
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
:root.werkTyme .catalog-thread > a {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.werkTyme .pinned .thumb,
|
.pinned .werkTyme-filename,
|
||||||
.werkTyme .filter-highlight .thumb {
|
.filter-highlight .werkTyme-filename {
|
||||||
border: 2px solid rgba(255, 0, 0, .5);
|
border: 2px solid rgba(255, 0, 0, .5);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -31,7 +31,10 @@ FappeTyme =
|
|||||||
catalogNode: ->
|
catalogNode: ->
|
||||||
{file} = @thread.OP
|
{file} = @thread.OP
|
||||||
return if !file
|
return if !file
|
||||||
$.add @nodes.thumb, $.el('span', textContent: file.name)
|
span = $.el 'span',
|
||||||
|
textContent: file.name
|
||||||
|
className: 'werkTyme-filename'
|
||||||
|
$.add @nodes.thumb.parentNode, span
|
||||||
|
|
||||||
cb:
|
cb:
|
||||||
set: (type) ->
|
set: (type) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user