refactor: replace magic 6px with dynamic a.gap_md/2
This commit is contained in:
@@ -253,7 +253,10 @@ export function ProfileGrid({
|
|||||||
.map((_, i) => (
|
.map((_, i) => (
|
||||||
<View
|
<View
|
||||||
key={i}
|
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 />
|
<SuggestedFollowPlaceholder />
|
||||||
</View>
|
</View>
|
||||||
))
|
))
|
||||||
@@ -275,7 +278,8 @@ export function ProfileGrid({
|
|||||||
}}
|
}}
|
||||||
style={[
|
style={[
|
||||||
a.flex_1,
|
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}) => (
|
{({hovered, pressed}) => (
|
||||||
<CardOuter
|
<CardOuter
|
||||||
|
|||||||
Reference in New Issue
Block a user