mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-11-29 08:06:46 +00:00
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:
co-authored by
Claude Opus 5.5
parent
c5ee1e70e7
commit
0428708019
@@ -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}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user