[openstreetmap/openstreetmap-website] allow width change of browse/history pages (#1254)

Minh Nguyễn notifications at github.com
Tue Feb 10 10:19:49 UTC 2026


1ec5 left a comment (openstreetmap/openstreetmap-website#1254)

> You can also add `resize: horizontal;` for `#sidebar` and get extensible sidebar without JS

This would work as a first iteration, though at a minimum we’d also want to persist the width across page loads.

Going beyond that, iD implements [an unobtrusive handle](https://github.com/openstreetmap/iD/blob/406b78d5b569df65ef6d50a1d6cdece78a0cb130/modules/ui/sidebar.js#L49-L52) 10 pixels wide, interactive but invisible. The sidebar is constrained to a minimum and maximum width. Dragging the handle further to the left causes the sidebar to close. I think this is closer to what users expect from a sidebar these days, but we’d need to be careful not to place anything else within those 10 pixels that accepts clicks.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/1254#issuecomment-3876699562
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/issues/1254/3876699562 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20260210/3077e378/attachment.htm>


More information about the rails-dev mailing list