By-the-ways:
- I use Neovim
- I use Arch Linux
diff --git a/src/app.tsx b/src/app.tsx index 2feb160..4227a23 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -40,6 +40,14 @@ function AppLayout(props: { children: any }) { setRightBarVisible(true); } }); + + // Hide leftbar on mobile after 500ms with translation animation + const currentIsMobile = isMobile(windowWidth()); + if (currentIsMobile) { + setTimeout(() => { + setLeftBarVisible(false); + }, 1000); + } }); // Auto-hide on scroll (mobile only) diff --git a/src/routes/blog/[title]/index.tsx b/src/routes/blog/[title]/index.tsx index 78de472..977a7fe 100644 --- a/src/routes/blog/[title]/index.tsx +++ b/src/routes/blog/[title]/index.tsx @@ -350,7 +350,7 @@ export default function PostPage() { "pointer-events": "none" }} /> -