Felix i Jannes Mast
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Joakim Svensson 2025-05-08 20:57:16 +00:00
parent 2be12a1d9e
commit 467fa6d79b
1 changed files with 1 additions and 1 deletions

View File

@ -5,7 +5,7 @@ title: Meshtastic
<script> <script>
function scrollToContent() { function scrollToContent() {
const element = document.getElementById("main-content"); const element = document.getElementById("main-content");
const yOffset = -20; // scrolla 20px ovanför elementet const yOffset = -60; // scrolla 20px ovanför elementet
const y = element.getBoundingClientRect().top + window.pageYOffset + yOffset; const y = element.getBoundingClientRect().top + window.pageYOffset + yOffset;
window.scrollTo({ top: y, behavior: 'smooth' }); window.scrollTo({ top: y, behavior: 'smooth' });