UBER-641: fixed DatePopup. (#3535)

Signed-off-by: Alexander Platov <sas_lord@mail.ru>
This commit is contained in:
Alexander Platov 2023-07-31 09:36:24 +03:00 committed by GitHub
parent f7d68ee7da
commit 2781082f81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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,6 +93,7 @@
/>
</div>
<div class="content">
<Scroller padding={'1.5rem 2rem'} thinScrollBars>
<div class="label">
<span class="bold"><Label {label} /></span>
{#if detail}
@ -125,6 +128,7 @@
on:navigation={(result) => navigateMonth(result.detail)}
/>
</div>
</Scroller>
</div>
<div class="footer">
<Button
@ -172,7 +176,6 @@
overflow: hidden;
display: flex;
flex-direction: column;
padding: 1.5rem 2rem;
min-height: 0;
.label {