From 2781082f8152f171b77c081d3eaf5ff33bd7261b Mon Sep 17 00:00:00 2001 From: Alexander Platov Date: Mon, 31 Jul 2023 09:36:24 +0300 Subject: [PATCH] UBER-641: fixed DatePopup. (#3535) Signed-off-by: Alexander Platov --- .../src/components/calendar/DatePopup.svelte | 69 ++++++++++--------- 1 file changed, 36 insertions(+), 33 deletions(-) diff --git a/packages/ui/src/components/calendar/DatePopup.svelte b/packages/ui/src/components/calendar/DatePopup.svelte index be79fe2b9a..08a6613024 100644 --- a/packages/ui/src/components/calendar/DatePopup.svelte +++ b/packages/ui/src/components/calendar/DatePopup.svelte @@ -24,6 +24,7 @@ import DateInputBox from './DateInputBox.svelte' import MonthSquare from './MonthSquare.svelte' import Shifts from './Shifts.svelte' + import { Scroller, deviceOptionsStore as deviceInfo } from '../..' export let currentDate: Date | null export let withTime: boolean = false @@ -35,6 +36,7 @@ const dispatch = createEventDispatcher() const today: Date = new Date(Date.now()) + $: docHeight = $deviceInfo.docHeight let viewDate: Date = currentDate ?? today let viewDateSec: Date @@ -91,40 +93,42 @@ />
-
- - {#if detail} - - -
+ +
+ + {#if detail} + - +
- closeDP(withTime)} - on:save={() => saveDate(withTime)} - /> + closeDP(withTime)} + on:save={() => saveDate(withTime)} + /> -
- updateDate(result.detail)} - /> - updateDate(result.detail)} - on:navigation={(result) => navigateMonth(result.detail)} - /> -
+
+ updateDate(result.detail)} + /> + updateDate(result.detail)} + on:navigation={(result) => navigateMonth(result.detail)} + /> +
+