diff --git a/src/components/Bars.tsx b/src/components/Bars.tsx index 24c04f8..a6f3077 100644 --- a/src/components/Bars.tsx +++ b/src/components/Bars.tsx @@ -39,6 +39,7 @@ interface ContributionDay { } export function RightBarContent() { + const { setLeftBarVisible } = useBars(); const [githubCommits, setGithubCommits] = createSignal([]); const [giteaCommits, setGiteaCommits] = createSignal([]); const [githubActivity, setGithubActivity] = createSignal( @@ -47,6 +48,12 @@ export function RightBarContent() { const [giteaActivity, setGiteaActivity] = createSignal([]); const [loading, setLoading] = createSignal(true); + const handleLinkClick = () => { + if (typeof window !== "undefined" && window.innerWidth < 768) { + setLeftBarVisible(false); + } + }; + onMount(() => { // Fetch all data client-side only to avoid hydration mismatch const fetchData = async () => { @@ -83,7 +90,9 @@ export function RightBarContent() {