fix: Correction du panneau de notes partiellement visible au démarrage

- Position cachée ajustée à -620px pour invisibilité totale
- Gestion dynamique du décalage selon la largeur
- Indicateur de redimensionnement rendu plus visible (3 barres CSS)
- Zone de clic élargie à 16px pour meilleure ergonomie
This commit is contained in:
Pierre Marx
2025-09-04 16:36:04 -04:00
parent d66af7d99d
commit 0aaa3e63f2
3 changed files with 69 additions and 24 deletions

View File

@@ -878,6 +878,11 @@ function showNotes() {
}
}
// Réinitialiser la position pour l'affichage
if (notesSection) {
notesSection.style.right = '0';
}
notesSection.classList.add('visible');
toggleBtn.classList.add('active');
@@ -912,6 +917,12 @@ function hideNotes() {
webviewContainer.classList.remove('notes-open');
}
// S'assurer que le panneau est complètement caché
if (notesSection) {
const currentWidth = notesSection.offsetWidth || 380;
notesSection.style.right = `-${currentWidth + 20}px`;
}
// Sauvegarder la préférence
localStorage.setItem('notesVisible', 'false');
}