Skip to content

Commit

Permalink
[Glitch] Add hover cards to follow suggestions
Browse files Browse the repository at this point in the history
Port e973351 to glitch-soc

Signed-off-by: Claire <[email protected]>
  • Loading branch information
ClearlyClaire committed Jan 27, 2025
1 parent 560eaff commit e736363
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,11 +55,11 @@ export const Card = ({ id, source }) => {
</div>

<div className='explore__suggestions__card__body'>
<Link to={`/@${account.get('acct')}`}><Avatar account={account} size={48} /></Link>
<Link to={`/@${account.get('acct')}`} data-hover-card-account={account.id}><Avatar account={account} size={48} /></Link>

<div className='explore__suggestions__card__body__main'>
<div className='explore__suggestions__card__body__main__name-button'>
<Link className='explore__suggestions__card__body__main__name-button__name' to={`/@${account.get('acct')}`}><DisplayName account={account} /></Link>
<Link className='explore__suggestions__card__body__main__name-button__name' to={`/@${account.get('acct')}`} data-hover-card-account={account.id}><DisplayName account={account} /></Link>
<IconButton iconComponent={CloseIcon} onClick={handleDismiss} title={intl.formatMessage(messages.dismiss)} />
<FollowButton accountId={account.get('id')} />
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ const Card: React.FC<{
/>

<div className='inline-follow-suggestions__body__scrollable__card__avatar'>
<Link to={`/@${account?.acct}`}>
<Link to={`/@${account?.acct}`} data-hover-card-account={account?.id}>
<Avatar account={account} size={72} />
</Link>
</div>

<div className='inline-follow-suggestions__body__scrollable__card__text-stack'>
<Link to={`/@${account?.acct}`}>
<Link to={`/@${account?.acct}`} data-hover-card-account={account?.id}>
<DisplayName account={account} />
</Link>
{firstVerifiedField ? (
Expand Down

0 comments on commit e736363

Please sign in to comment.