fix: more z-index issue (#18493)

This commit is contained in:
Alex
2025-05-22 15:17:14 -05:00
committed by GitHub
parent 15877ddf1f
commit 065f7c7d5d
5 changed files with 16 additions and 11 deletions

View File

@@ -45,7 +45,7 @@
onscroll={onScroll}
>
{#if canScrollLeft || canScrollRight}
<div class="sticky start-0">
<div class="sticky start-0 z-1">
{#if canScrollLeft}
<div class="absolute start-4 top-24" transition:fade={{ duration: 200 }}>
<button
@@ -60,7 +60,7 @@
</div>
{/if}
{#if canScrollRight}
<div class="absolute end-4 top-24" transition:fade={{ duration: 200 }}>
<div class="absolute end-4 top-24 z-1" transition:fade={{ duration: 200 }}>
<button
type="button"
class="rounded-full border border-gray-500 bg-gray-100 p-2 text-gray-500 opacity-50 hover:opacity-100"