better fix: move unread count back inside link
This commit is contained in:
parent
f65d0833a3
commit
a6cbde4eb3
@ -575,21 +575,23 @@ span.hide-announcement {
|
|||||||
padding-top: 3px;
|
padding-top: 3px;
|
||||||
}
|
}
|
||||||
#watched-threads > div {
|
#watched-threads > div {
|
||||||
max-width: 250px;
|
|
||||||
padding-left: 3px;
|
padding-left: 3px;
|
||||||
padding-right: 3px;
|
padding-right: 3px;
|
||||||
display: -webkit-flex;
|
}
|
||||||
display: flex;
|
#watched-threads .watcher-link {
|
||||||
|
max-width: 250px;
|
||||||
|
display: -webkit-inline-flex;
|
||||||
|
display: inline-flex;
|
||||||
-webkit-flex-direction: row;
|
-webkit-flex-direction: row;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
}
|
}
|
||||||
#watched-threads > div > .watched-thread-link {
|
#watched-threads .watcher-title {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
-webkit-flex: 0 1 auto;
|
-webkit-flex: 0 1 auto;
|
||||||
flex: 0 1 auto;
|
flex: 0 1 auto;
|
||||||
}
|
}
|
||||||
#watched-threads > div > :not(.watched-thread-link) {
|
#watched-threads .watcher-unread {
|
||||||
-webkit-flex: 0 0 auto;
|
-webkit-flex: 0 0 auto;
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -177,26 +177,30 @@ ThreadWatcher =
|
|||||||
x = $.el 'a',
|
x = $.el 'a',
|
||||||
className: 'fa fa-times'
|
className: 'fa fa-times'
|
||||||
href: 'javascript:;'
|
href: 'javascript:;'
|
||||||
textContent: '\u00A0'
|
|
||||||
$.on x, 'click', ThreadWatcher.cb.rm
|
$.on x, 'click', ThreadWatcher.cb.rm
|
||||||
|
|
||||||
|
title = $.el 'span',
|
||||||
|
textContent: data.excerpt
|
||||||
|
className: 'watcher-title'
|
||||||
|
|
||||||
|
count = $.el 'span',
|
||||||
|
textContent: if data.unread? then "\u00A0(#{data.unread})" else ''
|
||||||
|
className: 'watcher-unread'
|
||||||
|
|
||||||
if Conf['404 Redirect'] and data.isDead
|
if Conf['404 Redirect'] and data.isDead
|
||||||
href = Redirect.to 'thread', {boardID, threadID}
|
href = Redirect.to 'thread', {boardID, threadID}
|
||||||
link = $.el 'a',
|
link = $.el 'a',
|
||||||
href: href or "/#{boardID}/thread/#{threadID}"
|
href: href or "/#{boardID}/thread/#{threadID}"
|
||||||
textContent: data.excerpt
|
|
||||||
title: data.excerpt
|
title: data.excerpt
|
||||||
className: 'watched-thread-link'
|
className: 'watcher-link'
|
||||||
|
$.add link, [title, count]
|
||||||
count = $.el 'span',
|
|
||||||
textContent: if data.unread? then "\u00A0(#{data.unread})" else ''
|
|
||||||
|
|
||||||
div = $.el 'div'
|
div = $.el 'div'
|
||||||
fullID = "#{boardID}.#{threadID}"
|
fullID = "#{boardID}.#{threadID}"
|
||||||
div.dataset.fullID = fullID
|
div.dataset.fullID = fullID
|
||||||
$.addClass div, 'current' if g.VIEW is 'thread' and fullID is "#{g.BOARD}.#{g.THREADID}"
|
$.addClass div, 'current' if g.VIEW is 'thread' and fullID is "#{g.BOARD}.#{g.THREADID}"
|
||||||
$.addClass div, 'dead-thread' if data.isDead
|
$.addClass div, 'dead-thread' if data.isDead
|
||||||
$.add div, [x, link, count]
|
$.add div, [x, $.tn(' '), link]
|
||||||
div
|
div
|
||||||
refresh: ->
|
refresh: ->
|
||||||
nodes = []
|
nodes = []
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user