feat: improve mobile header and layout responsiveness

- Add sticky positioning to mobile header
- Implement back navigation for mobile header
- Adjust layout to use min-height instead of fixed height
- Remove global scroll-smooth class for more flexible scrolling
- Update dependencies to latest versions
This commit is contained in:
radishzzz 2025-02-14 07:04:52 +00:00
parent 4aec3ae6cf
commit 7498f93ef9
6 changed files with 99 additions and 67 deletions

View file

@ -27,13 +27,13 @@ const { isHome, isPost } = getPagePath(Astro.url.pathname);
<html
lang={Astro.currentLocale || 'en-US'}
class:list={[fontStyle]}
class:list={[fontStyle, isPost && 'scroll-smooth ']}
data-overlayscrollbars-initialize
>
<Head {postTitle} {postDescription} {postImage} />
<body data-overlayscrollbars-initialize>
<div
class="mx-a max-w-492 h-dvh"
class="mx-a max-w-492 min-h-dvh"
p="x-[calc(9.942vw-1.18rem)] y-[calc(7.3vw+0.52rem)] lg:(x-36 y-[max(10.4vh,7.8rem)])"
lg="grid cols-[1fr_22rem] rows-1 gap-[min(calc(16.83vw-6.27rem),18rem)]"
>