diff options
author | Eric Bailey <git@esb.lol> | 2024-04-13 00:13:53 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-13 06:13:53 +0100 |
commit | f5bb348bf51df6f6d35eb23cdf771c184d77fec4 (patch) | |
tree | c23990e4f1d3cb1d4dd06433a31423f265fd1ac6 /src/components/ProfileHoverCard | |
parent | a845587e1f0b74b087b0c59d1cdc8e6c5feaf98f (diff) | |
download | voidsky-f5bb348bf51df6f6d35eb23cdf771c184d77fec4.tar.zst |
Profile hovers (#3518)
* Add hover card for mentions * Reposted by * Fix key * Add to composer reply to
Diffstat (limited to 'src/components/ProfileHoverCard')
-rw-r--r-- | src/components/ProfileHoverCard/index.web.tsx | 5 | ||||
-rw-r--r-- | src/components/ProfileHoverCard/types.ts | 1 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/components/ProfileHoverCard/index.web.tsx b/src/components/ProfileHoverCard/index.web.tsx index 0d62a52a3..d0e1b58ee 100644 --- a/src/components/ProfileHoverCard/index.web.tsx +++ b/src/components/ProfileHoverCard/index.web.tsx @@ -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 && ( diff --git a/src/components/ProfileHoverCard/types.ts b/src/components/ProfileHoverCard/types.ts index 4e70df5f0..a62279c96 100644 --- a/src/components/ProfileHoverCard/types.ts +++ b/src/components/ProfileHoverCard/types.ts @@ -3,4 +3,5 @@ import React from 'react' export type ProfileHoverCardProps = { children: React.ReactElement did: string + inline?: boolean } |