Skip to content

Commit 1f08993

Browse files
changed scroll offset
1 parent 4ddc909 commit 1f08993

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/mobile-menu.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ document.getElementById('portfolio-link').addEventListener('click', function(eve
9494
const target = document.getElementById('portfolio');
9595

9696
// Calculate the offset to scroll to, ensuring it's not too close to the top
97-
const offset = target.offsetTop - 50; // Adjust the offset as needed
97+
const offset = target.offsetTop - 20; // Adjust the offset as needed
9898

9999
// Scroll to the target with a smooth animation
100100
window.scrollTo({

0 commit comments

Comments
 (0)