diff options
author | Eric Bailey <git@esb.lol> | 2025-04-04 18:55:30 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-04 16:55:30 -0700 |
commit | 0b08128e4a984e302c4675bf6b262272744e69f1 (patch) | |
tree | aec6422c52f356ea0322aacd8fb400f68c8ccb66 /src/components/AvatarStack.tsx | |
parent | aca89d4aea61a50697187464e88ac1b9a4ef40bd (diff) | |
download | voidsky-0b08128e4a984e302c4675bf6b262272744e69f1.tar.zst |
[Explore] Design tweaks (#8131)
* Fix interests card spacing * Space out AvatarStack * SP icon size * Visual alignment of tab bar and headers * Tweak spacing around search input * Drop text size in sp card overflow count * Tweak
Diffstat (limited to 'src/components/AvatarStack.tsx')
-rw-r--r-- | src/components/AvatarStack.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/components/AvatarStack.tsx b/src/components/AvatarStack.tsx index a341a2061..ae42a7470 100644 --- a/src/components/AvatarStack.tsx +++ b/src/components/AvatarStack.tsx @@ -19,7 +19,7 @@ export function AvatarStack({ numPending?: number backgroundColor?: string }) { - const halfSize = size / 2 + const translation = size / 3 // overlap by 1/3 const t = useTheme() const moderationOpts = useModerationOpts() @@ -43,7 +43,7 @@ export function AvatarStack({ a.flex_row, a.align_center, a.relative, - {width: size + (items.length - 1) * halfSize}, + {width: size + (items.length - 1) * (size - translation)}, ]}> {items.map((item, i) => ( <View @@ -54,7 +54,7 @@ export function AvatarStack({ { width: size, height: size, - left: i * -halfSize, + left: i * -translation, borderWidth: 1, borderColor: backgroundColor ?? t.atoms.bg.backgroundColor, borderRadius: 999, |