This commit is contained in:
Julien Calixte
2021-05-09 01:12:01 +02:00
parent a98f30cfcd
commit 6a5e7a9d63
11 changed files with 89 additions and 95 deletions

View File

@@ -39,10 +39,9 @@ export const useNoteOverlay = (className: string, index: number) => {
) as NodeListOf<HTMLElement>
stackedNoteContainers.forEach((stackedNote, ind) => {
stackedNote.style.right = `calc(-${NOTE_WIDTH}px + ${(stackedNotes.value
.length -
ind) *
BOOKMARK_WIDTH}rem)`
stackedNote.style.right = `calc(-${NOTE_WIDTH}px + ${
(stackedNotes.value.length - ind) * BOOKMARK_WIDTH
}rem)`
})
}
})