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

@@ -18,6 +18,7 @@ const props = defineProps<{
const didrkey = computed(() => props.didrkey)
const did = computed(() => props.didrkey.split("-")[0])
const rkey = computed(() => props.didrkey.split("-")[1])
const classNameId = computed(() => didrkey.value.replaceAll(":", "-"))
const index = computed(() => props.index)
@@ -67,12 +68,12 @@ watch(
:class="{
[className]: true,
overlay: displayNoteOverlay,
[`note-${didrkey}`]: true,
[`note-${classNameId}`]: true,
}"
>
<a
class="title-stacked-note-link"
@click.prevent="scrollToFocusedNote(didrkey)"
@click.prevent="scrollToFocusedNote(classNameId)"
>
<div
class="title-stacked-note breadcrumbs text-sm"