Show bookmark buttons when item is focused (#2386)

This commit is contained in:
bymyself
2025-01-30 15:45:04 -07:00
committed by GitHub
parent 8ef3b87e59
commit 4699360147
3 changed files with 6 additions and 3 deletions

View File

@@ -9,6 +9,7 @@
:pt="{
nodeLabel: 'tree-explorer-node-label',
nodeContent: ({ context }) => ({
class: 'group/tree-node',
onClick: (e: MouseEvent) =>
onNodeContentClick(e, context.node as RenderedTreeExplorerNode),
onContextmenu: (e: MouseEvent) =>

View File

@@ -27,7 +27,9 @@
class="leaf-count-badge"
/>
</div>
<div class="node-actions">
<div
class="node-actions motion-safe:opacity-0 motion-safe:group-hover/tree-node:opacity-100"
>
<slot name="actions" :node="props.node"></slot>
</div>
</div>