iD icon indicating copy to clipboard operation
iD copied to clipboard

Make sidebar on narrow/mobile screens full-width modal

Open mjog opened this issue 11 months ago • 10 comments

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:

Image

Do this this instead:

Image

mjog avatar Jan 04 '26 01:01 mjog

So, the sidebar should only open as a full modal when a feature is clicked or has to be added?

waqas2714 avatar Jan 05 '26 09:01 waqas2714

I would suggest keeping the existing behaviour more or less as-is, just make the sidebar full-width when open on devices like phones.

mjog avatar Jan 05 '26 11:01 mjog

@k-yle can you please assign this issue to me if this addition sounds okay?

Thanks

waqas2714 avatar Jan 05 '26 12:01 waqas2714

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 avatar Jan 05 '26 12:01 k-yle

@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 avatar Jan 05 '26 12:01 mjog

@mjog oh sorry, I was too quick with this one 😅

k-yle avatar Jan 05 '26 13:01 k-yle

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!

ak8abhinay avatar Jan 06 '26 17:01 ak8abhinay

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!!

deepshikhatutorials avatar Jan 07 '26 07:01 deepshikhatutorials

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!

waqas2714 avatar Jan 26 '26 11:01 waqas2714

Is any of the two PR progressing? Which one is closest to be ready?

AlbertoFabbri93 avatar Jun 14 '26 10:06 AlbertoFabbri93