fix: no : in class names

This commit is contained in:
Julien Calixte
2026-02-21 19:37:36 +01:00
parent defce0b45e
commit 1dffab12df
4 changed files with 6 additions and 20 deletions

View File

@@ -29,8 +29,9 @@ export const useRouteQueryStackedNotes = () => {
if (isMobile.value) {
if (noteId) {
const cleanNoteId = noteId.replaceAll(":", "-")
const element = document.querySelector(
`.note-${noteId}`,
`.note-${cleanNoteId}`,
) as HTMLElement
const top = (index + 1) * (element?.clientHeight ?? height.value)