jupyterlab-toc
jupyterlab-toc copied to clipboard
How to customize the indent size of TOC

This value (currently 32px) is hard-coded into the style sheet for the extension. Right now, I can think of three ways to customize it:
- Keep a custom version of the extension with this line set to your liking.
- Make a JupyterLab theme extension, where you set
--jp-private-toc-indent-width. - If you want a more temporary solution, you can load some CSS by opening a code console and entering
%%html
<style>
:root {
--jp-private-toc-indent-width: 10px;
}
</style>
Thx!