We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents eaa8f40 + f804496 commit 60199e8Copy full SHA for 60199e8
src/jupyter_contrib_nbextensions/nbextensions/toc2/toc2.js
@@ -269,11 +269,9 @@
269
}
270
if (visible_sidebar) {
271
var nb_inner_w = nb_inner.outerWidth();
272
- if (available_space <= nb_inner_w + sidebar_w) {
273
- inner_css.marginLeft = sidebar_w + margin; // shift notebook rightward to fit the sidebar in
274
- if (available_space <= nb_inner_w) {
275
- inner_css.width = available_space; // also slim notebook to fit sidebar
276
- }
+ inner_css.marginLeft = sidebar_w + margin; // shift notebook rightward to fit the sidebar in
+ if (available_space <= nb_inner_w) {
+ inner_css.width = available_space; // also slim notebook to fit sidebar
277
278
279
nb_inner.css(inner_css);
0 commit comments