diff --git a/apps/admin-x-activitypub/src/components/Activities.tsx b/apps/admin-x-activitypub/src/components/Activities.tsx index 6f1d1d468f..9a86906c25 100644 --- a/apps/admin-x-activitypub/src/components/Activities.tsx +++ b/apps/admin-x-activitypub/src/components/Activities.tsx @@ -283,17 +283,17 @@ const Activities: React.FC = ({}) => {
-
+
{!openStates[group.id || `${group.type}_${index}`] && group.actors.slice(0, maxAvatars).map(actor => ( ))} {group.actors.length > maxAvatars && (!openStates[group.id || `${group.type}_${index}`]) && (
{`+${group.actors.length - maxAvatars}`}
@@ -301,7 +301,7 @@ const Activities: React.FC = ({}) => { {group.actors.length > 1 && (
-
+
{openStates[group.id || `${group.type}_${index}`] && group.actors.length > 1 && (
{group.actors.map(actor => ( diff --git a/apps/admin-x-activitypub/src/components/activities/NotificationItem.tsx b/apps/admin-x-activitypub/src/components/activities/NotificationItem.tsx index ea8124f73d..64843a2a80 100644 --- a/apps/admin-x-activitypub/src/components/activities/NotificationItem.tsx +++ b/apps/admin-x-activitypub/src/components/activities/NotificationItem.tsx @@ -20,7 +20,7 @@ interface NotificationItemProps { const NotificationItem = ({children, onClick, url, className}: NotificationItemProps) => { return ( - diff --git a/apps/admin-x-activitypub/src/components/global/APAvatar.tsx b/apps/admin-x-activitypub/src/components/global/APAvatar.tsx index 021294a221..594ebc2d0d 100644 --- a/apps/admin-x-activitypub/src/components/global/APAvatar.tsx +++ b/apps/admin-x-activitypub/src/components/global/APAvatar.tsx @@ -4,7 +4,7 @@ import getUsername from '../../utils/get-username'; import {ActorProperties} from '@tryghost/admin-x-framework/api/activitypub'; import {Icon} from '@tryghost/admin-x-design-system'; -type AvatarSize = '2xs' | 'xs' | 'sm' | 'lg'; +type AvatarSize = '2xs' | 'xs' | 'sm' | 'lg' | 'notification'; export type AvatarBadge = 'user-fill' | 'heart-fill' | 'comment-fill' | undefined; interface APAvatarProps { @@ -48,6 +48,11 @@ const APAvatar: React.FC = ({author, size, badge}) => { containerClass = clsx('h-6 w-6 rounded-md ', containerClass); imageClass = 'z-10 rounded-md w-6 h-6 object-cover'; break; + case 'notification': + iconSize = 12; + containerClass = clsx('h-9 w-9 rounded-md', containerClass); + imageClass = 'z-10 rounded-xl w-9 h-9 object-cover'; + break; case 'sm': containerClass = clsx('h-10 w-10 rounded-md', containerClass); break;