WIP: add TODO and small fixies
All checks were successful
Deploy App / build (push) Successful in 1m31s
Deploy App / deploy (push) Successful in 15s

This commit is contained in:
valere
2025-11-11 19:23:33 +01:00
parent 10311256ea
commit f9aeb03f82
12 changed files with 461 additions and 163 deletions

View File

@@ -54,7 +54,15 @@ export const useUiStore = defineStore('ui', {
const boxElement = document.getElementById(box.id)
if (boxElement) {
setTimeout(() => {
boxElement.scrollIntoView({ behavior: 'smooth' })
// Récupérer la position de l'élément
const elementRect = boxElement.getBoundingClientRect()
// Calculer la position de défilement (une boîte plus haut)
const offsetPosition = elementRect.top + window.pageYOffset - (elementRect.height * 1.5)
// Faire défiler à la nouvelle position
window.scrollTo({
top: offsetPosition,
behavior: 'smooth'
})
}, 333)
}
}