fix flicker due to z index change

This commit is contained in:
Guilhem
2025-02-12 16:10:44 +00:00
parent 69ebe10851
commit a038513bfa

View File

@@ -39,6 +39,8 @@
async function getMenuElements(): Promise<HTMLElement[]> {
return Array.from(document.querySelectorAll('[data-popover]')) as HTMLElement[]
}
const zIndex = zIndexes.popover
</script>
<div
@@ -65,9 +67,8 @@
{#if isOpen && !disablePopup}
<div
use:melt={$content}
transition:fade={{ duration: 100 }}
class="w-fit border rounded-md bg-surface overflow-hidden shadow-lg"
style="z-index: {zIndexes.popover}"
transition:fade={{ duration: 0 }}
class="z-[{zIndex}] w-fit border rounded-md bg-surface overflow-hidden shadow-lg"
data-popover
>
{#if displayArrow}