Skip to content

Commit 3a0be5e

Browse files
samejrericallam
authored andcommitted
Fixes z-index issues with resizable panels handles
1 parent 01d6c07 commit 3a0be5e

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

apps/webapp/app/components/primitives/Resizable.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const ResizableHandle = ({
3030
<PanelResizer
3131
className={cn(
3232
// Base styles
33-
"group relative flex items-center justify-center focus-custom",
33+
"group relative isolate flex items-center justify-center focus-custom",
3434
// Horizontal orientation (default)
3535
"w-0.75 after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2",
3636
// Vertical orientation
@@ -45,19 +45,19 @@ const ResizableHandle = ({
4545
{...props}
4646
>
4747
{/* Horizontal orientation line indicator */}
48-
<div className="absolute left-[0.0625rem] top-0 z-20 h-full w-px bg-grid-bright transition group-hover:left-0 group-hover:w-0.75 group-hover:bg-indigo-500 group-data-[handle-orientation=vertical]:hidden" />
48+
<div className="absolute left-[0.0625rem] top-0 h-full w-px bg-grid-bright transition group-hover:left-0 group-hover:w-0.75 group-hover:bg-indigo-500 group-data-[handle-orientation=vertical]:hidden" />
4949
{/* Vertical orientation line indicator */}
50-
<div className="absolute left-0 top-[0.0625rem] z-20 hidden h-px w-full bg-grid-bright transition group-hover:top-0 group-hover:h-0.75 group-hover:bg-indigo-500 group-data-[handle-orientation=vertical]:block" />
50+
<div className="absolute left-0 top-[0.0625rem] hidden h-px w-full bg-grid-bright transition group-hover:top-0 group-hover:h-0.75 group-hover:bg-indigo-500 group-data-[handle-orientation=vertical]:block" />
5151
{withHandle && (
5252
<>
5353
{/* Horizontal orientation dots (vertical arrangement) */}
54-
<div className="z-10 flex h-5 w-0.75 flex-col items-center justify-center gap-[0.1875rem] bg-background-dimmed group-hover:hidden group-data-[handle-orientation=vertical]:hidden">
54+
<div className="relative flex h-5 w-0.75 flex-col items-center justify-center gap-[0.1875rem] bg-background-dimmed transition-opacity group-hover:opacity-0 group-data-[handle-orientation=vertical]:hidden">
5555
{Array.from({ length: 3 }).map((_, index) => (
5656
<div key={index} className="h-[0.1875rem] w-0.75 rounded-full bg-charcoal-600" />
5757
))}
5858
</div>
5959
{/* Vertical orientation dots (horizontal arrangement) */}
60-
<div className="z-10 hidden h-0.75 w-5 flex-row items-center justify-center gap-[0.1875rem] bg-background-dimmed group-hover:hidden group-data-[handle-orientation=vertical]:flex">
60+
<div className="relative hidden h-0.75 w-5 flex-row items-center justify-center gap-[0.1875rem] bg-background-dimmed transition-opacity group-hover:opacity-0 group-data-[handle-orientation=vertical]:flex">
6161
{Array.from({ length: 3 }).map((_, index) => (
6262
<div key={index} className="h-0.75 w-[0.1875rem] rounded-full bg-charcoal-600" />
6363
))}

0 commit comments

Comments
 (0)