refs #4653 Fix emoji reaction position

This commit is contained in:
AkiraFukushima 2023-12-12 00:03:06 +09:00
parent 22d2858c1c
commit a9360e478e
No known key found for this signature in database
GPG Key ID: B6E51BAC4DE1A957
1 changed files with 8 additions and 6 deletions

View File

@ -76,12 +76,14 @@ export default function Status(props: Props) {
{status.poll && <Poll poll={status.poll} onRefresh={onRefresh} client={props.client} />}
{status.card && <Card card={status.card} />}
<Media media={status.media_attachments} sensitive={status.sensitive} openMedia={props.openMedia} />
{status.emoji_reactions &&
status.emoji_reactions.map(e => (
<button key={e.name} className="py-1">
{e.url ? <img src={e.url} style={{ height: '24px' }} /> : <span>{e.name}</span>}
</button>
))}
<div className="flex items-center gap-2">
{status.emoji_reactions &&
status.emoji_reactions.map(e => (
<button key={e.name} className="py-1">
{e.url ? <img src={e.url} style={{ height: '24px' }} /> : <span>{e.name}</span>}
</button>
))}
</div>
</>
)}