Is there a way to set an x offset for a sidebar collapse button so that it only applies when open? When the sidebar is open, I want the collapse button to be shifted to the right.
However, when the sidebar closes up against the right side of the screen, the collapse button disappears because it is still shifted to the right, and is now off the screen. Is there a way to keep the offset only when open? Or alternatively, is there a way to create a button to open/close the sidebar?