From 1dd852795e3cfdde8c552f0b281cd511b1671ef5 Mon Sep 17 00:00:00 2001 From: Michael Freno Date: Mon, 22 Dec 2025 10:55:08 -0500 Subject: [PATCH] login fixes --- src/components/Bars.tsx | 39 +++++-- src/components/blog/PostForm.tsx | 50 +++++---- src/components/blog/TextEditor.tsx | 10 +- src/routes/login/password-reset.tsx | 154 +++++++++++++++++----------- src/server/api/routers/auth.ts | 48 ++++++++- 5 files changed, 204 insertions(+), 97 deletions(-) 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() {