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:
parent
af99414d6a
commit
37f1b0e9d1
3 changed files with 29 additions and 7 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue