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 91c7fd7 commit 2850502Copy full SHA for 2850502
resources/js/functions.js
@@ -284,7 +284,7 @@ $(document).ready(function() {
284
});
285
const target = $('#sidebar-toc .active');
286
if (target.length) {
287
- const marginTop = $('#sidebar-toc').find('.type-chapter').length ? 15 : 10;
+ const marginTop = $('#sidebar-toc .type-chapter').length ? 15 : 10;
288
$('#sidebar-toc').animate({scrollTop: target.position().top - marginTop}, 200);
289
};
290
}
0 commit comments