From f58ad8e4199eacf922dfe0bc3d41fd948677b6bd Mon Sep 17 00:00:00 2001 From: Caidan Williams Date: Fri, 25 Jul 2025 16:38:25 -0700 Subject: refactor: replace magic 6px with dynamic a.gap_md/2 --- src/components/FeedInterstitials.tsx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/components/FeedInterstitials.tsx') diff --git a/src/components/FeedInterstitials.tsx b/src/components/FeedInterstitials.tsx index 123733923..70e025a94 100644 --- a/src/components/FeedInterstitials.tsx +++ b/src/components/FeedInterstitials.tsx @@ -253,7 +253,10 @@ export function ProfileGrid({ .map((_, i) => ( + style={[ + gtMobile && + web([a.flex_0, {width: `calc(50% - ${a.gap_md.gap / 2}px)`}]), + ]}> )) @@ -275,7 +278,8 @@ export function ProfileGrid({ }} style={[ a.flex_1, - gtMobile && web([a.flex_0, {width: 'calc(50% - 6px)'}]), + gtMobile && + web([a.flex_0, {width: `calc(50% - ${a.gap_md.gap / 2}px)`}]), ]}> {({hovered, pressed}) => (