Move the right sidebar toggle to a button in the upper right icon tray.
You can add this to Roam using {{[[roam/js]]}}
Grab the code in roam-sidebar-toggle.js
and drop it in a javascript code block, nested underneath a {{[[roam/js]]}}
block:
```javascript```
Additionally, grab the code in roam-sidebar-toggle.css
and add it to a CSS code block on a Roam page titled roam/css. This will remove the standard sidebar toggle button inside the right sidebar, freeing up some crucial real estate:
```css```
Unfortunately the latest Roam update changed the topbar again and this time there are issues with the DOM being ephemeral and buttons moving all over the place. I have it fixed as far as it can be but will share once it's more stable.
I prefer not to share JS imports because I'm not a coder and would like folks to fully see what they are copying in. Too much responsibility.