Skip to content

Commit

Permalink
Merge branch 'development' into enhance-searchInput
Browse files Browse the repository at this point in the history
  • Loading branch information
pinocchio-life-like authored Jan 5, 2025
2 parents fbea5d5 + 19dbe50 commit 2ae2356
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 5 deletions.
1 change: 1 addition & 0 deletions packages/app/screens/about/about.style.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ const loadStyles = (theme: any) => {
},
textContainer: {
marginBottom: 20,
padding: 40,
},
text: {
fontSize: 18,
Expand Down
44 changes: 39 additions & 5 deletions packages/ui/src/Bento/elements/datepickers/RangePicker.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import React from 'react';
import {
DatePickerProvider,
DatePickerProvider as _DatePickerProvider,
Expand Down Expand Up @@ -91,7 +92,17 @@ function Calendar({
});

return (
<View flexDirection="column" gap="$4">
<View
flexDirection="column"
gap="$4"
{...Platform.select({
native: {
alignItems: 'center',
width: '100%',
paddingLeft: '$2',
},
})}
>
<View
flexDirection="row"
minWidth="100%"
Expand Down Expand Up @@ -131,9 +142,12 @@ function Calendar({
selectable
tabIndex={0}
cursor="pointer"
size="$6"
size={Platform.select({
web: '$6',
native: '$5',
})}
color="$gray12"
fontWeight="600"
fontWeight="700"
lineHeight="$1"
hoverStyle={{
color: '$gray10',
Expand Down Expand Up @@ -182,14 +196,27 @@ function Calendar({
theme="alt1"
key={day}
ta="center"
width={45}
width={Platform.select({
web: 45,
native: 46,
})}
size="$4"
textAlign="center"
>
{day}
</SizableText>
))}
</View>
<View flexDirection="column" gap="$1" flexWrap="wrap">
<View
flexDirection="column"
gap="$1"
flexWrap="wrap"
{...Platform.select({
native: {
paddingRight: '$2',
},
})}
>
{subDays.map((days) => (
<View
flexDirection="row"
Expand All @@ -203,6 +230,12 @@ function Calendar({
circular
padding={0}
minWidth={46}
height={Platform.select({
web: undefined,
native: 46,
})}
alignItems="center"
justifyContent="center"
{...swapOnClick(dayButton(d))}
backgroundColor={
d.selected && d.inCurrentMonth
Expand All @@ -229,6 +262,7 @@ function Calendar({
? '$gray11'
: '$gray6'
}
textAlign="center"
>
{d.day}
</Button.Text>
Expand Down

0 comments on commit 2ae2356

Please sign in to comment.