mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-21 21:29:20 +01:00
Fix the 'thread' badge being jumpy
This commit is contained in:
parent
90f1a9e529
commit
9d8286234f
1 changed files with 7 additions and 5 deletions
|
@ -271,7 +271,7 @@ function Status({
|
||||||
</span>
|
</span>
|
||||||
))}
|
))}
|
||||||
</div>
|
</div>
|
||||||
{inReplyToAccount && !withinContext && size !== 's' && (
|
{inReplyToAccountId && !withinContext && size !== 's' && (
|
||||||
<div
|
<div
|
||||||
class={`status-${
|
class={`status-${
|
||||||
inReplyToAccountId === status.account.id ? 'thread' : 'reply'
|
inReplyToAccountId === status.account.id ? 'thread' : 'reply'
|
||||||
|
@ -283,10 +283,12 @@ function Status({
|
||||||
Thread
|
Thread
|
||||||
</>
|
</>
|
||||||
) : (
|
) : (
|
||||||
<>
|
!!inReplyToAccount && (
|
||||||
<Icon icon="reply" />{' '}
|
<>
|
||||||
<NameText account={inReplyToAccount} short />
|
<Icon icon="reply" />{' '}
|
||||||
</>
|
<NameText account={inReplyToAccount} short />
|
||||||
|
</>
|
||||||
|
)
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
|
|
Loading…
Reference in a new issue