Make sidebar on narrow/mobile screens full-width modal
Description
On mobile, there's no point keeping the main UI pane visible when the sidebar is open - you can't use any of it and it's just reducing the amount of space available for the sidebar's contents instead
Instead, when the sidebar is opened, it should act as a full-width modal, and the close button should hide it.
Screenshots
E.g. instead of this:
Do this this instead:
So, the sidebar should only open as a full modal when a feature is clicked or has to be added?
I would suggest keeping the existing behaviour more or less as-is, just make the sidebar full-width when open on devices like phones.
@k-yle can you please assign this issue to me if this addition sounds okay?
Thanks
we don't assign issues, anyone is free to submit a PR.
This issue is a duplicate of #9815, so I think we should discuss the problem first at #9815, before sending a PR.
@k-yle this is not actually a duplicate of https://github.com/openstreetmap/iD/issues/9815 - although that is also annoying and probably wants to get fixed before addressing this.
@mjog oh sorry, I was too quick with this one 😅
Hello! I'm a new contributor and I'm interested in working on this issue. I’ve tested the UI on mobile device and and yes the sidebar doesn't open with full width. Before I dive in, I wanted to check if this issue is still relevant. Thanks!
Hi @k-yle
I’d like to work on this issue if it’s still unassigned. I’m a beginner, but I’ve gone through the issue carefully and understand the UX problem.
On mobile screens, keeping the main UI visible when the sidebar is open doesn’t add any value and only reduces usable space for the sidebar.
A better experience could be:
- On narrow screens, open the sidebar as a full-width panel
- Hide or disable the main UI while the sidebar is open
- Keep desktop behaviour unchanged
- Use the close button (and optionally tapping outside) to close the sidebar
This would make the sidebar easier to use on mobile and keep the UI cleaner. If this approach sounds okay, I’d be happy to take this issue.
Thank you!!
Hi @jidanni . I have made a PR #11753 which addresses this issue and the remaining part of #9815. You can checkout the details in the PR.
Thanks!
Is any of the two PR progressing? Which one is closest to be ready?