pl-fe: display Expand/Collapse button when status.content is empty

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2024-11-27 09:01:48 +01:00
parent 99c5521e97
commit fd15332d6a

View file

@ -171,7 +171,7 @@ const StatusContent: React.FC<IStatusContent> = React.memo(({
<span className={clsx({ 'line-clamp-3': !expanded && lineClamp })} ref={spoilerNode}>
<Emojify text={spoilerText} emojis={status.emojis} />
</span>
{status.content && expandable && (
{expandable && (
<Button
className='ml-2 align-middle'
type='button'