From d6c41e5b33b5c8bfafcd1cc195e0cf85fb330761 Mon Sep 17 00:00:00 2001 From: Caidan Williams Date: Fri, 25 Jul 2025 18:36:26 -0700 Subject: [PATCH] refactor(ui): web profile cards maxLength 4 -> 3 with flex grow --- src/components/FeedInterstitials.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/components/FeedInterstitials.tsx b/src/components/FeedInterstitials.tsx index f16b33786d..e9e2ee2a27 100644 --- a/src/components/FeedInterstitials.tsx +++ b/src/components/FeedInterstitials.tsx @@ -247,7 +247,7 @@ export function ProfileGrid({ const navigation = useNavigation() const {gtMobile} = useBreakpoints() const isLoading = isSuggestionsLoading || !moderationOpts - const maxLength = gtMobile ? 4 : 6 + const maxLength = gtMobile ? 3 : 6 const content = isLoading ? ( Array(maxLength) @@ -281,7 +281,11 @@ export function ProfileGrid({ style={[ a.flex_1, gtMobile && - web([a.flex_0, {width: `calc(50% - ${a.gap_md.gap / 2}px)`}]), + web([ + a.flex_0, + a.flex_grow, + {width: `calc(30% - ${a.gap_md.gap / 2}px)`}, + ]), ]}> {({hovered, pressed}) => (