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/[email protected]>
_______________________________________________
rails-dev mailing list
[email protected]
https://lists.openstreetmap.org/listinfo/rails-dev

Reply via email to