diff --git a/src/lib/components/calendar/DayPicker.svelte b/src/lib/components/calendar/DayPicker.svelte index 0917967..4d8c91a 100644 --- a/src/lib/components/calendar/DayPicker.svelte +++ b/src/lib/components/calendar/DayPicker.svelte @@ -81,7 +81,7 @@ > {#each days as day, i (day)} - {#if !$store.enlargeDay || !dayjs(day.date).isSame($store.selected, 'day')} + {#if !$store.enlargeDay || index !== monthIndex || !dayjs(day.date).isSame($store.selected)} { - if (!w || !h) return []; + if (!w || !h || !intiailized) return []; const cellHeight = h / cellCount; const start = Math.max(-1, Math.floor((-1 * $o) / cellHeight) - 1); const baseOffset = $o % cellHeight; diff --git a/src/lib/docs/NavBarItem.svelte b/src/lib/docs/NavBarItem.svelte index 90ea58e..37bd0db 100644 --- a/src/lib/docs/NavBarItem.svelte +++ b/src/lib/docs/NavBarItem.svelte @@ -6,7 +6,7 @@ const page = getContext('navbar'); const dispatch = createEventDispatcher(); - export let href; + export let href = ''; export let isActive = (path) => `${base}${path}` === href; const click = (evt) => dispatch('click', evt); diff --git a/src/routes/index.svelte b/src/routes/index.svelte index fc585a1..6ed843d 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -48,7 +48,6 @@ display: grid; grid-template: 1fr / 1fr; text-align: left; - /* background: #0f0b0c; */ background: var(--sc-theme-calendar-colors-background-highlight); margin: 0; grid-column: 1;