PR feedback. Fix for the popover menu not sticking to the add fields button

This commit is contained in:
Dean 2024-07-03 16:56:37 +01:00
parent e472dc826c
commit 6ecaaba146
1 changed files with 17 additions and 15 deletions

View File

@ -288,21 +288,23 @@
{/each} {/each}
{#if table && schemaFields} {#if table && schemaFields}
<div {#key editableFields}
class="add-fields-btn" <div
class:empty={Object.is(editableFields, {})} class="add-fields-btn"
bind:this={popoverAnchor} class:empty={Object.is(editableFields, {})}
> bind:this={popoverAnchor}
<ActionButton >
icon="Add" <ActionButton
fullWidth icon="Add"
on:click={() => { fullWidth
customPopover.show() on:click={() => {
}} customPopover.show()
disabled={!schemaFields} }}
>Add fields disabled={!schemaFields}
</ActionButton> >Add fields
</div> </ActionButton>
</div>
{/key}
{/if} {/if}
<Popover <Popover