wevisdemo / parliament-watch

Citizens are watching 👀
https://parliamentwatch.wevis.info
Other
61 stars 33 forks source link

Navbar on mobile does not close when changing to new page #151

Closed Th1nkK1D closed 1 week ago

Th1nkK1D commented 2 weeks ago

Describe the bug When clicking a link in the navbar on a mobile screen, the user thinks the page has not changed because it was hidden under the full-screen navbar menu.

To Reproduce Steps to reproduce the behavior:

  1. Go to any page eg. https://parliamentwatch.wevis.info
  2. Click on the hamburger menu to open the menu.
  3. Click any link to go to any page.
  4. The page is changed in the background, but it is not visible because the menu is still there.

Expected behavior When user click the link, the navbar menu should be closed so users can see the pages has changed.

Screenshots

Screencast from 2024-10-24 18-12-53.webm

Desktop (please complete the following information):

Additional context

SupeemAFK commented 1 week ago

I can fix this if anyone hasn't done this yet.