Skip to content

Commit 4b89e0d

Browse files
authored
style: optimization (#885)
1 parent 890ccf6 commit 4b89e0d

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

packages/components/src/Icon/react/solid/NavSend.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Svg, { SvgProps, Path } from 'react-native-svg';
44
function SvgNavSend(props: SvgProps) {
55
return (
66
<Svg viewBox="0 0 24 24" fill="currentColor" {...props}>
7-
<Path d="M21.435 2.582a1.933 1.933 0 00-1.93-.503L3.408 6.759a1.92 1.92 0 00-1.384 1.522c-.142.75.355 1.704 1.003 2.102l5.033 3.094a1.304 1.304 0 001.61-.194l5.763-5.799a.734.734 0 011.06 0c.29.292.29.765 0 1.067l-5.773 5.8c-.428.43-.508 1.1-.193 1.62l3.075 5.083c.36.604.98.946 1.66.946.08 0 .17 0 .251-.01.78-.1 1.4-.634 1.63-1.39l4.773-16.075c.21-.685.02-1.43-.48-1.943z" />
7+
<Path d="M20.435 3.582a1.933 1.933 0 00-1.93-.503L2.408 7.759a1.92 1.92 0 00-1.384 1.522c-.142.75.355 1.704 1.003 2.102l5.033 3.094a1.304 1.304 0 001.61-.194l5.763-5.799a.734.734 0 011.06 0c.29.292.29.765 0 1.067l-5.773 5.8c-.428.43-.508 1.1-.193 1.62l3.075 5.083c.36.604.98.946 1.66.946.08 0 .17 0 .251-.01.78-.1 1.4-.634 1.63-1.39l4.773-16.075c.21-.685.02-1.43-.48-1.943z" />
88
</Svg>
99
);
1010
}

packages/components/src/Layout/BottomBarModal/index.tsx

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const BottomBarModal = forwardRef<BottomSheet, TBottomBarModalProps>(
4444
);
4545

4646
const ITEM_COUNT = 2;
47-
const innerHeight = 60 * ITEM_COUNT + 32 * 2;
47+
const innerHeight = 72 * ITEM_COUNT + 32 + 56;
4848
return (
4949
<BottomSheet
5050
ref={ref}
@@ -58,7 +58,7 @@ const BottomBarModal = forwardRef<BottomSheet, TBottomBarModalProps>(
5858
backdropComponent={renderBackdrop}
5959
backgroundStyle={{ backgroundColor: sheetBgColor }}
6060
>
61-
<Box px={4} py={8}>
61+
<Box px={4} pt={8} pb={12}>
6262
{props.foldableList.map((foldable, index) => (
6363
<Pressable
6464
key={index}
@@ -70,20 +70,23 @@ const BottomBarModal = forwardRef<BottomSheet, TBottomBarModalProps>(
7070
_pressed={{ bg: 'surface-pressed' }}
7171
borderRadius="xl"
7272
mt={index === 0 ? undefined : 2}
73-
p="2"
73+
px="2"
74+
py="3"
7475
>
7576
<Box display="flex" flexDirection="column">
76-
<Box display="flex" flexDirection="row" alignItems="flex-start">
77-
<Icon
78-
name={foldable?.tabBarIcon?.() as ICON_NAMES}
79-
color="icon-default"
80-
size={24}
81-
/>
77+
<Box display="flex" flexDirection="row" alignItems="center">
78+
<Box p={3} rounded="full" bgColor="interactive-default">
79+
<Icon
80+
name={foldable?.tabBarIcon?.() as ICON_NAMES}
81+
color="icon-on-primary"
82+
size={20}
83+
/>
84+
</Box>
8285

8386
<Box ml={4}>
84-
<Typography.Body1Strong color={inactiveFontColor}>
87+
<Typography.Heading color={inactiveFontColor}>
8588
{foldable.tabBarLabel}
86-
</Typography.Body1Strong>
89+
</Typography.Heading>
8790
<Typography.Body2 color="text-subdued">
8891
{foldable.description}
8992
</Typography.Body2>
Lines changed: 1 addition & 1 deletion
Loading

0 commit comments

Comments
 (0)