Collapsible sidebar, preferably with a keyboard shortcut #2561
hamirmahal
started this conversation in
Feature Requests
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
What version of
starlight
are you using?latest
What is your idea?
It'd be nice if users could collapse the sidebar.
Ideally, there should be a keyboard shortcut to toggle the sidebar's state. A common one that developers may be familiar with is Ctrl + B.
If there is a collapse/expand sidebar button, the button should show this keyboard shortcut on hover.
Why is this feature necessary?
The sidebar takes up a non-trivial amount of space in portrait mode.
Do you have examples of this feature in other projects?
https://rust-lang.github.io/mdBook/ lets users collapse the sidebar by clicking on the three horizontal lines, although there's no keyboard shortcut.
Also, the button to collapse the sidebar lives outside the sidebar, which is a bit unexpected.
The button to collapse the sidebar should be in the sidebar.
Participation
Beta Was this translation helpful? Give feedback.
All reactions