fix: big z index issue

This commit is contained in:
Xyphyn committed 2023-09-14 19:35:42 -07:00
1 parent dce4e4e751
commit d5d2fc9a5d
4 files changed
+7 -6

No files matched your search

+3 -3
View File
@@ -46,13 +46,13 @@
on:click={onclick}
class="relative flex flex-col gap-2.5"
>
{#if view == 'list' || view == 'compact'}
<!-- {#if view == 'list' || view == 'compact'}
<div
class="absolute -inset-0.5 group-hover:-inset-2 group-hover:-inset-y-3 group-hover:md:-inset-4
transition-all rounded-xl group-hover:bg-slate-50 group-hover:dark:bg-zinc-900"
/>
{/if}
<div class="flex flex-row gap-2 max-w-full w-full z-10">
{/if} -->
<div class="flex flex-row gap-2 max-w-full w-full">
<div class="flex flex-col w-full gap-2">
<div class="flex flex-col w-full gap-2">
<PostMeta
@@ -75,7 +75,7 @@
</Modal>
{/if}
<div class="flex flex-row gap-2 items-center h-8 [&>*]:z-10">
<div class="flex flex-row gap-2 items-center h-8">
<PostVote
post={post.post}
bind:vote={post.my_vote}
+2 -1
View File
@@ -24,7 +24,8 @@
<!-- svelte-ignore a11y-click-events-have-key-events -->
<!-- svelte-ignore a11y-positive-tabindex -->
<div
class="fixed top-0 left-0 w-screen h-screen overflow-auto bg-black/50 flex flex-col z-[100] overscroll-contain"
class="fixed top-0 left-0 w-screen h-screen overflow-auto bg-black/50
flex flex-col z-[200] overscroll-contain"
transition:fade={{ duration: 200 }}
on:click={() => (open = false)}
>