Skip to content

Commit 24fd9d0

Browse files
committed
feat: wrap Overview component in XStack for improved layout
1 parent 56746ac commit 24fd9d0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/kit/src/views/Earn/EarnHome.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import {
66
Page,
77
RefreshControl,
88
Stack,
9+
XStack,
910
YStack,
1011
useMedia,
1112
} from '@onekeyhq/components';
@@ -299,7 +300,9 @@ function BasicEarnHome({
299300
<YStack flex={1} gap="$4">
300301
{/* overview and banner */}
301302
<YStack gap="$8">
302-
<Overview onRefresh={refreshEarnAccounts} isLoading={isLoading} />
303+
<XStack px="$5">
304+
<Overview onRefresh={refreshEarnAccounts} isLoading={isLoading} />
305+
</XStack>
303306
{banners ? (
304307
<YStack
305308
minHeight="$36"

packages/kit/src/views/Earn/components/Overview.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,6 @@ export const Overview = ({
319319
<YStack
320320
gap="$1"
321321
px="$0"
322-
$gtSm={{
323-
px: '$5',
324-
}}
325322
$gtLg={{
326323
flexDirection: 'row',
327324
alignItems: 'center',

0 commit comments

Comments
 (0)