mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-02-02 14:16:39 +01:00
Fix compact thread status not showing badge when there's no thread number
This commit is contained in:
parent
85e4a27a6b
commit
62af5dbf64
1 changed files with 5 additions and 1 deletions
|
@ -559,13 +559,17 @@ function TimelineStatusCompact({ status, instance }) {
|
|||
const sKey = statusKey(id, instance);
|
||||
return (
|
||||
<article class="status compact-thread" tabindex="-1">
|
||||
{!!snapStates.statusThreadNumber[sKey] && (
|
||||
{!!snapStates.statusThreadNumber[sKey] ? (
|
||||
<div class="status-thread-badge">
|
||||
<Icon icon="thread" size="s" />
|
||||
{snapStates.statusThreadNumber[sKey]
|
||||
? ` ${snapStates.statusThreadNumber[sKey]}/X`
|
||||
: ''}
|
||||
</div>
|
||||
) : (
|
||||
<div class="status-thread-badge">
|
||||
<Icon icon="thread" size="s" />
|
||||
</div>
|
||||
)}
|
||||
<div class="content-compact" title={statusPeekText}>
|
||||
{statusPeekText}
|
||||
|
|
Loading…
Reference in a new issue