Bring HoverCard out of NavLink
This commit is contained in:
parent
6c205deaf0
commit
1f5898b67d
2 changed files with 4 additions and 6 deletions
|
@ -465,10 +465,9 @@ class Status extends ImmutablePureComponent {
|
|||
<div className='status__avatar'>
|
||||
{statusAvatar}
|
||||
</div>
|
||||
<DisplayName account={status.get('account')} others={otherAccounts}>
|
||||
<ProfileHoverCardContainer accountId={status.getIn(['account', 'id'])} visible={!isMobile(window.innerWidth) && profileCardVisible} />
|
||||
</DisplayName>
|
||||
<DisplayName account={status.get('account')} others={otherAccounts} />
|
||||
</NavLink>
|
||||
<ProfileHoverCardContainer accountId={status.getIn(['account', 'id'])} visible={!isMobile(window.innerWidth) && profileCardVisible} />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -173,10 +173,9 @@ export default class DetailedStatus extends ImmutablePureComponent {
|
|||
<div className='detailed-status__profile' onMouseEnter={this.handleProfileHover} onMouseLeave={this.handleProfileLeave}>
|
||||
<NavLink to={`/@${status.getIn(['account', 'acct'])}`} className='detailed-status__display-name'>
|
||||
<div className='detailed-status__display-avatar'><Avatar account={status.get('account')} size={48} /></div>
|
||||
<DisplayName account={status.get('account')}>
|
||||
<ProfileHoverCardContainer accountId={status.getIn(['account', 'id'])} visible={!isMobile(window.innerWidth) && profileCardVisible} />
|
||||
</DisplayName>
|
||||
<DisplayName account={status.get('account')} />
|
||||
</NavLink>
|
||||
<ProfileHoverCardContainer accountId={status.getIn(['account', 'id'])} visible={!isMobile(window.innerWidth) && profileCardVisible} />
|
||||
</div>
|
||||
|
||||
{status.get('group') && (
|
||||
|
|
Loading…
Reference in a new issue