pl-fe: never display header when empty

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
nicole mikołajczyk
2025-10-27 05:49:48 +01:00
parent 5fef7a8fc0
commit 6f0829b308

View File

@ -61,12 +61,16 @@ const AccountCard: React.FC<IAccountCard> = ({ id }) => {
<ActionButton account={account} small />
</div>
<StillImage
src={account.header}
staticSrc={account.header_static}
alt={account.header_description}
className='h-32 w-full rounded-t-lg object-cover'
/>
{account.header ? (
<StillImage
src={account.header}
staticSrc={account.header_static}
alt={account.header_description}
className='h-32 w-full rounded-t-lg object-cover'
/>
) : (
<div className='h-32 w-full rounded-t-lg bg-gray-200 dark:bg-gray-700' />
)}
<Link to={`/@${account.acct}`} title={account.acct}>
<HoverAccountWrapper key={account.id} accountId={account.id} element='span'>