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.
1 parent 03109e4 commit f804496Copy full SHA for f804496
src/jupyter_contrib_nbextensions/nbextensions/toc2/toc2.js
@@ -238,11 +238,9 @@
238
}
239
if (visible_sidebar) {
240
var nb_inner_w = nb_inner.outerWidth();
241
- if (available_space <= nb_inner_w + sidebar_w) {
242
- inner_css.marginLeft = sidebar_w + margin; // shift notebook rightward to fit the sidebar in
243
- if (available_space <= nb_inner_w) {
244
- inner_css.width = available_space; // also slim notebook to fit sidebar
245
- }
+ 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
246
247
248
nb_inner.css(inner_css);
0 commit comments