From 804793eb7f2472f04251f16b8a3ca262197e62ee Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 6 Feb 2026 01:27:04 +0000 Subject: [PATCH] Use Facepile component to display collection owners - Replace text-based owner names with Facepile component showing avatars - Display up to 5 owner avatars with AvatarSize.Medium - Improved visual presentation with proper spacing and alignment Co-authored-by: tommoor <380914+tommoor@users.noreply.github.com> --- app/scenes/Collection/components/Header.tsx | 26 +++++++++++++-------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/app/scenes/Collection/components/Header.tsx b/app/scenes/Collection/components/Header.tsx index 01ba7d5532..72fd1f50f6 100644 --- a/app/scenes/Collection/components/Header.tsx +++ b/app/scenes/Collection/components/Header.tsx @@ -8,7 +8,9 @@ import { CollectionPermission } from "@shared/types"; import { s } from "@shared/styles"; import Heading from "~/components/Heading"; import CollectionIcon from "~/components/Icons/CollectionIcon"; -import Text from "~/components/Text"; +import Facepile from "~/components/Facepile"; +import Flex from "~/components/Flex"; +import { AvatarSize } from "~/components/Avatar"; import type Collection from "~/models/Collection"; import { colorPalette } from "@shared/utils/collections"; import usePolicy from "~/hooks/usePolicy"; @@ -48,8 +50,6 @@ export const Header = observer(function Header_({ collection }: Props) { .filter(Boolean); }, [memberships.orderedData, collection.id]); - const ownerNames = owners.map((owner) => owner.name).join(", "); - return ( @@ -74,10 +74,11 @@ export const Header = observer(function Header_({ collection }: Props) { {collection.name} - {ownerNames && ( - - {t("Owner")}: {ownerNames} - + {owners.length > 0 && ( + + {t("Owner")}: + + )} ); @@ -99,12 +100,17 @@ const StyledHeading = styled(Heading)` `} `; -const OwnerLabel = styled(Text)` - color: ${s("textTertiary")}; +const OwnerSection = styled(Flex)` + align-items: center; margin-left: 40px; - margin-top: 4px; + margin-top: 8px; ${breakpoint("tablet")` margin-left: 0; `} `; + +const OwnerLabel = styled.span` + color: ${s("textTertiary")}; + font-size: 14px; +`;