Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
abidlabs committed Feb 3, 2025
1 parent c65ed70 commit 78935e9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions js/sidebar/shared/Sidebar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
export let width: number | string;
// Using a temporary variable to animate the sidebar opening at the start
let mounted = false;
let _open = false;
let sidebar_div: HTMLElement;
let overlap_amount = 0;
Expand Down Expand Up @@ -37,10 +38,11 @@
);
};
update_parent_overlap();
_open = open;
mounted = true;
return () => window.removeEventListener("resize", check_overlap);
});
$: _open = open;
$: if (mounted) _open = open;
</script>

<div
Expand Down

0 comments on commit 78935e9

Please sign in to comment.