diff options
Diffstat (limited to 'src/components')
-rw-r--r-- | src/components/ProfileHoverCard/index.tsx | 2 | ||||
-rw-r--r-- | src/components/ProfileHoverCard/index.web.tsx | 6 | ||||
-rw-r--r-- | src/components/ProfileHoverCard/types.ts | 1 |
3 files changed, 6 insertions, 3 deletions
diff --git a/src/components/ProfileHoverCard/index.tsx b/src/components/ProfileHoverCard/index.tsx index 980336ee4..b33fdec2d 100644 --- a/src/components/ProfileHoverCard/index.tsx +++ b/src/components/ProfileHoverCard/index.tsx @@ -1,4 +1,4 @@ -import {ProfileHoverCardProps} from './types' +import {type ProfileHoverCardProps} from './types' export function ProfileHoverCard({children}: ProfileHoverCardProps) { return children diff --git a/src/components/ProfileHoverCard/index.web.tsx b/src/components/ProfileHoverCard/index.web.tsx index eb6efa4c9..5aa57cde1 100644 --- a/src/components/ProfileHoverCard/index.web.tsx +++ b/src/components/ProfileHoverCard/index.web.tsx @@ -74,7 +74,9 @@ export function ProfileHoverCard(props: ProfileHoverCardProps) { return props.children } else { return ( - <View onPointerMove={onPointerMove} style={[a.flex_shrink, props.style]}> + <View + onPointerMove={onPointerMove} + style={[a.flex_shrink, props.inline && a.inline, props.style]}> <ProfileHoverCardInner {...props} /> </View> ) @@ -326,7 +328,7 @@ export function ProfileHoverCardInner(props: ProfileHoverCardProps) { onPointerLeave={onPointerLeaveTarget} // @ts-ignore web only prop onMouseUp={onPress} - style={{flexShrink: 1}}> + style={[a.flex_shrink, props.inline && a.inline]}> {props.children} {isVisible && ( <Portal> diff --git a/src/components/ProfileHoverCard/types.ts b/src/components/ProfileHoverCard/types.ts index 7d9e19ac5..f99254e40 100644 --- a/src/components/ProfileHoverCard/types.ts +++ b/src/components/ProfileHoverCard/types.ts @@ -6,4 +6,5 @@ export type ProfileHoverCardProps = ViewStyleProp & { children: React.ReactNode did: string disable?: boolean + inline?: boolean } |