Highlight focused element by path

Also force all its parents to be open, similar to forceOpen from the
previous commit (which, incidentally, this commit removes again).
This commit is contained in:
Joscha 2025-02-05 21:18:37 +01:00
parent af99414d6a
commit 37f1b0e9d1
3 changed files with 29 additions and 7 deletions

View file

@ -10,7 +10,7 @@ const ui = useUiStore();
<div class="flex h-screen touch-pan-x touch-pan-y flex-col">
<CNavbar />
<div class="h-full overflow-auto px-2 py-1">
<CNote :noteId="ui.anchor" />
<CNote :noteId="ui.anchor" :focusPath="ui.focusPath" />
</div>
</div>
</template>