fix: size the grant menu trigger to the tree row

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Guilhem Lemouel
2026-11-03 01:43:40 -08:00
co-authored by Claude Opus 5.5
parent c5ee1e70e7
commit 0428708019
+12 -13
View File
@@ -284,20 +284,19 @@
</Tooltip>
{:else}
{@const key = `${kind}:${path}`}
<!-- The trigger is h-8, taller than a tree row: the margin keeps rows with a menu as tall as the rest. -->
<div class="-my-2">
<DropdownV2
size="xs"
items={grantActions(kind, path, current)}
bind:open={
() => openMenu === key,
(next) => {
if (next) openMenu = key
else if (openMenu === key) openMenu = undefined
}
<DropdownV2
size="xs"
fixedHeight={false}
class="-my-0.5"
items={grantActions(kind, path, current)}
bind:open={
() => openMenu === key,
(next) => {
if (next) openMenu = key
else if (openMenu === key) openMenu = undefined
}
/>
</div>
}
/>
{/if}
{/snippet}