pl-fe: never display header when empty
Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>
This commit is contained in:
@ -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'>
|
||||
|
||||
Reference in New Issue
Block a user