mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-21 21:29:20 +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);
|
const sKey = statusKey(id, instance);
|
||||||
return (
|
return (
|
||||||
<article class="status compact-thread" tabindex="-1">
|
<article class="status compact-thread" tabindex="-1">
|
||||||
{!!snapStates.statusThreadNumber[sKey] && (
|
{!!snapStates.statusThreadNumber[sKey] ? (
|
||||||
<div class="status-thread-badge">
|
<div class="status-thread-badge">
|
||||||
<Icon icon="thread" size="s" />
|
<Icon icon="thread" size="s" />
|
||||||
{snapStates.statusThreadNumber[sKey]
|
{snapStates.statusThreadNumber[sKey]
|
||||||
? ` ${snapStates.statusThreadNumber[sKey]}/X`
|
? ` ${snapStates.statusThreadNumber[sKey]}/X`
|
||||||
: ''}
|
: ''}
|
||||||
</div>
|
</div>
|
||||||
|
) : (
|
||||||
|
<div class="status-thread-badge">
|
||||||
|
<Icon icon="thread" size="s" />
|
||||||
|
</div>
|
||||||
)}
|
)}
|
||||||
<div class="content-compact" title={statusPeekText}>
|
<div class="content-compact" title={statusPeekText}>
|
||||||
{statusPeekText}
|
{statusPeekText}
|
||||||
|
|
Loading…
Reference in a new issue