ProfileDropdown: allow clicking accounts again

This commit is contained in:
Alex Gleason 2022-11-19 15:09:01 -06:00
parent 9d87d9957f
commit 0cea66dcef
No known key found for this signature in database
GPG key ID: 7211D1F99744FBB7

View file

@ -58,7 +58,12 @@ const ProfileDropdown: React.FC<IProfileDropdown> = ({ account, children }) => {
const renderAccount = (account: AccountEntity) => {
return (
<Account account={account} showProfileHoverCard={false} withLinkToProfile={false} hideActions />
<div className='relative'>
{/* HACK: The <Account> component stops click events, so insert this div as something to click. */}
<div className='absolute inset-0' />
<Account account={account} showProfileHoverCard={false} withLinkToProfile={false} hideActions />
</div>
);
};