style notes

This commit is contained in:
Julie Blanc 2026-04-16 17:42:46 +02:00
parent 1d747cc77b
commit bc2c5ffccb
6 changed files with 74 additions and 4 deletions

View file

@ -40,9 +40,12 @@ export default class addPagesNotes extends Handler {
let container = document.createElement('div');
container.classList.add('container-note');
notes.forEach(function (note, index) {
container.appendChild(note);
container.appendChild(note);
note.style.position = "relative";
note.style.height = "auto";
if (note.getAttribute('data-counter-note') === '1') {
container.classList.add('container-note-first');
}
});
let pageNum = parseInt(pageElement.getAttribute('data-page-number'));