Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

making margin width configurable #67

Open
stas00 opened this issue Jul 6, 2018 · 0 comments
Open

making margin width configurable #67

stas00 opened this issue Jul 6, 2018 · 0 comments

Comments

@stas00
Copy link

stas00 commented Jul 6, 2018

Hi, would it be possible to make margin configurable? the hardcoded 20px on both sides is a lot of wasted work-space.

Currently I had to change it manually:

--- toc2/toc2.js.orig   2018-07-06 15:00:27.139881888 -0700
+++ toc2/toc2.js        2018-07-06 15:00:36.359743263 -0700
@@ -224,7 +224,7 @@
     }

     function setNotebookWidth(cfg, st) {
-        var margin = 20;
+        var margin = 5;
         var nb_inner = $('#notebook-container');
         var nb_wrap_w = $('#notebook').width();
         var sidebar = $('#toc-wrapper');

Thank you.

@stas00 stas00 changed the title making margin configurable making margin width configurable Jul 6, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant