mrvladus / Errands

Todo application for those who prefer simplicity.
MIT License
313 stars 67 forks source link

[Feature Request] Third option to close sidebar #145

Closed Natetronn closed 9 months ago

Natetronn commented 10 months ago

Currently, if one clicks on a task, the sidebar opens. To close it, we have two options (that I'm aware of). The first is to click on the task again. The second is via the "Toggle Sidebar" icon.

A third option could trigger when clicking on any empty space to either side of the tasks:

image

The space between the sidebar and the tasks, in particular, would be a nice quality of life addition.

Thanks!

mrvladus commented 9 months ago

I was thinking about that. We are used to this behavior in many apps, probably it's a good idea to add this here too. I'll try to add this.

Natetronn commented 9 months ago

I was thinking about that. We are used to this behavior in many apps, probably it's a good idea to add this here too. I'll try to add this.

Yes, exactly. This is often how offcanvas nav/menus and drawers function on the web and mobile devices. For example:

https://tw-elements.com/docs/standard/navigation/offcanvas/

mrvladus commented 9 months ago

Implemented with f07efc944b41628627f1288c06c9a0a9a89a82dc. Will be in the next release.

Natetronn commented 9 months ago

Thank you!