diff --git a/components/DatePicker/Screen/Mobile.tsx b/components/DatePicker/Screen/Mobile.tsx index f6cfcae15..8494f5c0f 100644 --- a/components/DatePicker/Screen/Mobile.tsx +++ b/components/DatePicker/Screen/Mobile.tsx @@ -35,87 +35,75 @@ export default function DatePickerMobile({ const endDate = dt().add(395, "day").toDate() const endOfLastMonth = dt(endDate).endOf("month").toDate() return ( - - -
- - ) - }, - MonthCaption(props) { - return ( -
- - {props.children} - -
- ) - }, - Root({ children, ...props }) { - return ( -
-
- -
- {children} -
- ) - }, - }} - /> +
+
+ +
+ + + {props.children} + +
+ ) + }, + }} + /> + +
) } diff --git a/components/DatePicker/Screen/mobile.module.css b/components/DatePicker/Screen/mobile.module.css index 5ee03bde5..4fba31592 100644 --- a/components/DatePicker/Screen/mobile.module.css +++ b/components/DatePicker/Screen/mobile.module.css @@ -10,6 +10,11 @@ position: relative; } +.root { + display: grid; + grid-area: content; +} + .header { align-self: flex-end; background-color: var(--Main-Grey-White); @@ -37,7 +42,6 @@ div.months { display: grid; - grid-area: content; overflow-y: scroll; scroll-snap-type: y mandatory; }