unisonweb / codebase-ui

Unison Codebase UI
https://share.unison-lang.org
MIT License
46 stars 7 forks source link

Support a small button to collapse the sidebar on desktop into a slim strip #200

Closed hojberg closed 3 years ago

hojberg commented 3 years ago

Clicking the button should shrink the sidebar into a small strip, and clicking again should expand. It should not interfere with the auto hiding that happens on smaller screens.

Note: this feature will tie in well with the desktop app (electron) effort and especially useful for Unison Local—Perhaps even something that exclusively should work there (?).

hagl commented 3 years ago

I will give this one a try.

Is this part in the design meant as a tooltip or a popup menu where the user can click the different lines? image

hojberg commented 3 years ago

@hagl yeah exactly! There's a menu option of the tooltip module https://github.com/unisonweb/codebase-ui/blob/main/src/UI/Tooltip.elm#L49

Note this requires icons and we don't currently have icons for all these options. I can get some icons together quick or we can make the icons optionals. What do you think?

hagl commented 3 years ago

Thanks for the hint! I think I'd make the icons optional. In some cases, no icon might be better than a bad one.