about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorCaidan Williams <caidan@internet.dev>2025-07-25 16:38:25 -0700
committerCaidan Williams <caidan@internet.dev>2025-07-29 17:37:01 -0700
commitf58ad8e4199eacf922dfe0bc3d41fd948677b6bd (patch)
tree472ce7b3044a9d7fbd0f856c026ba3e5643a0058 /src
parent2bf4ee5690d74ebdcd28f906d8948616a70568af (diff)
downloadvoidsky-f58ad8e4199eacf922dfe0bc3d41fd948677b6bd.tar.zst
refactor: replace magic 6px with dynamic a.gap_md/2
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 123733923..70e025a94 100644
--- a/src/components/FeedInterstitials.tsx
+++ b/src/components/FeedInterstitials.tsx
@@ -253,7 +253,10 @@ export function ProfileGrid({
       .map((_, i) => (
         <View
           key={i}
-          style={[gtMobile && web([a.flex_0, {width: 'calc(50% - 6px)'}])]}>
+          style={[
+            gtMobile &&
+              web([a.flex_0, {width: `calc(50% - ${a.gap_md.gap / 2}px)`}]),
+          ]}>
           <SuggestedFollowPlaceholder />
         </View>
       ))
@@ -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}) => (
             <CardOuter