Skip to content

Commit

Permalink
fix: animation bug when enlarging day that is also present as outside…
Browse files Browse the repository at this point in the history
…r date of adjacent calendar page
  • Loading branch information
6eDesign committed Sep 19, 2021
1 parent fd7ea11 commit 43199af
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/calendar/DayPicker.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
>
<Grid template="repeat(6, 1fr) / repeat(7, 1fr)">
{#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)}
<a
href="#pickday"
on:keydown|preventDefault
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/generic/InfiniteGrid.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
export const visibleData = derived(
[dim, offset],
([{ w, h }, $o]) => {
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;
Expand Down
2 changes: 1 addition & 1 deletion src/lib/docs/NavBarItem.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion src/routes/index.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 43199af

Please sign in to comment.