diff --git a/src/alf/atoms.ts b/src/alf/atoms.ts index 5725602172..fe449c6eeb 100644 --- a/src/alf/atoms.ts +++ b/src/alf/atoms.ts @@ -979,6 +979,12 @@ export const atoms = { hidden: { display: 'none', }, + inline: web({ + display: 'inline', + }), + block: web({ + display: 'block', + }), /* * Transition diff --git a/src/components/ProfileHoverCard/index.tsx b/src/components/ProfileHoverCard/index.tsx index 980336ee4a..b33fdec2d6 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 eb6efa4c97..5aa57cde1e 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 ( - + ) @@ -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 && ( diff --git a/src/components/ProfileHoverCard/types.ts b/src/components/ProfileHoverCard/types.ts index 7d9e19ac5b..f99254e401 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 } diff --git a/src/view/com/notifications/NotificationFeedItem.tsx b/src/view/com/notifications/NotificationFeedItem.tsx index 4de21e5985..d5aba86f7f 100644 --- a/src/view/com/notifications/NotificationFeedItem.tsx +++ b/src/view/com/notifications/NotificationFeedItem.tsx @@ -209,33 +209,35 @@ let NotificationFeedItem = ({ } const firstAuthorLink = ( - - {forceLTR(firstAuthorName)} - {firstAuthorVerification.showBadge && ( - - - - )} - + + + {forceLTR(firstAuthorName)} + {firstAuthorVerification.showBadge && ( + + + + )} + + ) const additionalAuthorsCount = authors.length - 1 const hasMultipleAuthors = additionalAuthorsCount > 0