Profile hovers (#3518)
* Add hover card for mentions * Reposted by * Fix key * Add to composer reply to
This commit is contained in:
parent
a845587e1f
commit
f5bb348bf5
5 changed files with 64 additions and 49 deletions
|
@ -116,7 +116,10 @@ export function ProfileHoverCardInner(props: ProfileHoverCardProps) {
|
|||
ref={refs.setReference}
|
||||
onPointerEnter={onPointerEnterTarget}
|
||||
onPointerLeave={onPointerLeaveTarget}
|
||||
onMouseUp={onClickTarget}>
|
||||
onMouseUp={onClickTarget}
|
||||
style={{
|
||||
display: props.inline ? 'inline' : 'block',
|
||||
}}>
|
||||
{props.children}
|
||||
|
||||
{hovered && (
|
||||
|
|
|
@ -3,4 +3,5 @@ import React from 'react'
|
|||
export type ProfileHoverCardProps = {
|
||||
children: React.ReactElement
|
||||
did: string
|
||||
inline?: boolean
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue