feat(frontend): Fix style panel zIndex (#3581)

This commit is contained in:
Faton Ramadani
2024-04-22 12:17:21 +02:00
committed by GitHub
parent c52d9d97e7
commit 464a2c4f66
2 changed files with 4 additions and 3 deletions
@@ -26,8 +26,8 @@
<div
transition:fade={{ duration: 150 }}
use:popperContent={{ placement: 'bottom', strategy: 'fixed' }}
class={`color-picker-input z-[${zIndexes.colorInput}] !text-primary`}
style="width: {width > 280 ? width : 280}px;"
class={`color-picker-input !text-primary`}
style="width: {width > 280 ? width : 280}px; z-index: {zIndexes.colorInput}"
>
<ColorPicker
bind:isOpen
@@ -21,7 +21,8 @@
<div
bind:clientWidth={width}
class={`absolute z-[${zIndexes.secondaryMenu}] inset-0 overflow-hidden w-full`}
class={`absolute inset-0 overflow-hidden w-full`}
style={`z-index: ${zIndexes.secondaryMenu}`}
class:pointer-events-none={!$secondaryMenu.isOpen}
>
{#if $secondaryMenu.isOpen && $secondaryMenu.component}