Skip to content

Commit 8d3ecf3

Browse files
committed
fix: Adjust margin top
1 parent e2d0fd4 commit 8d3ecf3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resources/js/functions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,8 @@ $(document).ready(function() {
284284
});
285285
const target = $('#sidebar-toc .active');
286286
if (target.length) {
287-
$('#sidebar-toc').animate({scrollTop: target.position().top}, 200);
287+
const marginTop = 10;
288+
$('#sidebar-toc').animate({scrollTop: target.position().top - marginTop}, 200);
288289
};
289290
}
290291
});

0 commit comments

Comments
 (0)