Fix the 'thread' badge being jumpy

This commit is contained in:
Lim Chee Aun 2022-12-22 12:14:01 +08:00
parent 90f1a9e529
commit 9d8286234f

View file

@ -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>
)} )}