Merge branch 'hover-card-display-hotfix' into 'develop'

Only render a hover profile card in the dom when relevant

See merge request soapbox-pub/soapbox-fe!130
merge-requests/155/head
Alex Gleason 4 years ago
commit aadde55262

@ -476,7 +476,9 @@ class Status extends ImmutablePureComponent {
<NavLink to={`/@${status.getIn(['account', 'acct'])}`} title={status.getIn(['account', 'acct'])} className='status__display-name'>
<DisplayName account={status.get('account')} others={otherAccounts} />
</NavLink>
<ProfileHoverCardContainer accountId={status.getIn(['account', 'id'])} visible={!isMobile(window.innerWidth) && profileCardVisible} />
{ profileCardVisible &&
<ProfileHoverCardContainer accountId={status.getIn(['account', 'id'])} visible={!isMobile(window.innerWidth)} />
}
</div>
</div>

Loading…
Cancel
Save