about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorCaidan Williams <caidan@internet.dev>2025-07-25 18:36:26 -0700
committerCaidan Williams <caidan@internet.dev>2025-07-29 17:37:01 -0700
commit4c8d5db6a65852da244a5adc2d8e833f19be306f (patch)
treef20db3da07019dc2d75b96dc71d2109d084c3a9a /src
parentb2fe27afe72bee4fbebf3bf57418a900fb62ef45 (diff)
downloadvoidsky-4c8d5db6a65852da244a5adc2d8e833f19be306f.tar.zst
refactor(ui): web profile cards maxLength 4 -> 3 with flex grow
Diffstat (limited to 'src')
-rw-r--r--src/components/FeedInterstitials.tsx8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/components/FeedInterstitials.tsx b/src/components/FeedInterstitials.tsx
index f16b33786..e9e2ee2a2 100644
--- a/src/components/FeedInterstitials.tsx
+++ b/src/components/FeedInterstitials.tsx
@@ -247,7 +247,7 @@ export function ProfileGrid({
   const navigation = useNavigation<NavigationProp>()
   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}) => (
             <CardOuter