windowWidth / 2 ? menu?.clientWidth : 0)
}px; top: ${fixedPosition.y}px;`
: menu?.getBoundingClientRect()?.left > windowWidth / 2
? 'right: 0;'
: 'left: 0;'}
bind:this={menu}
in:fly|global={{ y: 5, duration: 100, delay: anchored ? 0 : 100 }}
out:fly|global={{ y: 5, duration: 100 }}
>
{#if heading}
{heading}
{/if}
close()}>
{/key}
{/if}