#side-nav resize handle #16
r0ckarong
started this conversation in
Show and tell
Replies: 1 comment 1 reply
-
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to have a resize handle for my theme because I found it wasn't immediately obvious that the sidebar could be resized and the 1px width was very easy to miss with the mouse.
After banging my head against it for a while because of the HTML limitations of Doxygen (whatever I added moved the decorative lines for the doc content header or jumped around), I finally found something that looks good enough and works as intended.
The handle dots are to the left of the actual handle line which is accented by a very very light shadow that gives an idea where the draggable area is. The handle dots are taken straight from Confluence CSS (base64 encoded png with transparent background -works in darkmode!) and set as the background image of
#nav-tree
.There are some minor quirks that I haven't managed to iron out. The scrollbar is offset a little and is displayed on top of the handle icon. I think this is negligible but if someone finds a better way to do this I'm happy to learn.
Handle:

Scrollbar visible:

Darkmode:

Beta Was this translation helpful? Give feedback.
All reactions