jupyterlab-toc icon indicating copy to clipboard operation
jupyterlab-toc copied to clipboard

How to customize the indent size of TOC

Open Honghe opened this issue 7 years ago • 2 comments

image

Honghe avatar May 10 '18 06:05 Honghe

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:

  1. Keep a custom version of the extension with this line set to your liking.
  2. Make a JupyterLab theme extension, where you set --jp-private-toc-indent-width.
  3. 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>

ian-r-rose avatar May 10 '18 16:05 ian-r-rose

Thx!

Honghe avatar May 11 '18 01:05 Honghe