diff options
| author | Fuwn <[email protected]> | 2026-05-19 01:04:43 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2026-05-19 01:04:43 +0000 |
| commit | a6bd4c53ff33629a18c22f6e8a436bf51ec372af (patch) | |
| tree | 204ea022d726370a332c7bbc15f107b4db136dcc /src/routes/reader | |
| parent | fix(hero): swap 100vh for 100dvh on landing hero (diff) | |
| download | due.moe-a6bd4c53ff33629a18c22f6e8a436bf51ec372af.tar.xz due.moe-a6bd4c53ff33629a18c22f6e8a436bf51ec372af.zip | |
fix(nav): close dropdowns and hamburger on touch / outside click
Two related touch fixes:
- Dropdown :hover rule was sticky on touch devices after a tap, keeping
the menu visible even when the click toggle set open to false. Gate
the hover rule behind @media (hover: hover) so only true pointer
devices use the hover path; touch uses the click-driven open class.
- Hamburger menu had no outside-click close. Added a window click
handler that closes isMenuOpen when the target is outside .header.
Clicks on the toggle and on nav items stay inside .header, so opening
and item navigation are unaffected.
Diffstat (limited to 'src/routes/reader')
0 files changed, 0 insertions, 0 deletions