diff --git a/src/components/AvatarStack.tsx b/src/components/AvatarStack.tsx index 146f08d6dc..63f5ed77a0 100644 --- a/src/components/AvatarStack.tsx +++ b/src/components/AvatarStack.tsx @@ -6,24 +6,22 @@ import {useModerationOpts} from '#/state/preferences/moderation-opts' import {useProfilesQuery} from '#/state/queries/profile' import {UserAvatar} from '#/view/com/util/UserAvatar' import {atoms as a, useTheme} from '#/alf' -import type * as bsky from '#/types/bsky' +import * as bsky from '#/types/bsky' export function AvatarStack({ profiles, size = 26, numPending, backgroundColor, - spacing = 'normal', }: { profiles: bsky.profile.AnyProfileView[] size?: number numPending?: number backgroundColor?: string - spacing?: 'normal' | 'loose' }) { + const halfSize = size / 2 const t = useTheme() const moderationOpts = useModerationOpts() - const translateX = size / getSpacingValue(spacing) const isPending = (numPending && profiles.length === 0) || !moderationOpts @@ -45,7 +43,7 @@ export function AvatarStack({ a.flex_row, a.align_center, a.relative, - {width: size + (items.length - 1) * translateX}, + {width: size + (items.length - 1) * halfSize}, ]}> {items.map((item, i) => (