codeforcroatia / popravi.to

This is popular map-based reporting platform FixMyStreet for Croatia named "Popravi.to"
http://popravi.to
Other
9 stars 7 forks source link

Menu cannot be closed if opened on mobile #174

Closed schlos closed 1 year ago

schlos commented 2 years ago

Describe the bug

Mobile menu was broken when fixing desktop menu position (see #103). Menu cannot be closed if opened on mobile.

To Reproduce Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

Menu should be displayed below menu hamburger icon. Menu should be possible to close by clicking on hamburger icon. By fixing this we should not revert fix made for desktop: #103.

Screenshots

photo_2021-11-11_22-22-26

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context

schlos commented 2 years ago

How to contribute? Read our contribution guidelines at https://codeforcroatia.org/popravito-contribution-guidelines.

znmustic commented 1 year ago

Preuzela i ovo :)

schlos commented 1 year ago

Test report:

photo_2023-06-12_10-10-06

photo_2023-06-12_10-10-02

photo_2023-06-12_10-11-21

photo_2023-06-12_10-11-18

photo_2023-06-12_10-12-54

Menu icon is now moved outside of the screen, although issue is fixed and menu button is visible when menu is opened, and can be closed by clicking the menu icon again.

@znmustic, fix for this would be to move menu position back to the visible part of the screen (top right part of the mobile screen). How does that sound?

An improvement, if possible would be to show "X" instead of the menu hamburger icon for the menu close action. I.e. X button would be as big as hamburger icon. Let us know if you need a Figma design for this, and we will ask designer to take a look.

znmustic commented 1 year ago

I did what you asked, I think that now is all good. Just made a pull for fix https://github.com/codeforcroatia/popravi.to/pull/194 so you can check it and tell if needed anything more.

schlos commented 1 year ago

Fixed via #194

Screenshots after the fix:

photo_2023-06-13_16-08-19 photo_2023-06-13_16-08-16