From 750ed09fa667cdcb725436f1e98b5a91f4d72aca Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Wed, 2 Apr 2025 15:37:41 -0500 Subject: [PATCH] Revert change --- src/components/AvatarStack.tsx | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) 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) => (