@@ -26,19 +26,40 @@ const ResizableHandle = ({
2626} ) => (
2727 < PanelResizer
2828 className = { cn (
29- "group relative flex w-0.75 items-center justify-center focus-custom after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 data-[panel-group-direction=vertical]:h-px data-[panel-group-direction=vertical]:w-full data-[panel-group-direction=vertical]:after:left-0 data-[panel-group-direction=vertical]:after:h-1 data-[panel-group-direction=vertical]:after:w-full data-[panel-group-direction=vertical]:after:-translate-y-1/2 data-[panel-group-direction=vertical]:after:translate-x-0 hover:w-0.75 [&[data-panel-group-direction=vertical]>div]:rotate-90" ,
29+ // Base styles
30+ "group relative flex items-center justify-center focus-custom" ,
31+ // Horizontal orientation (default)
32+ "w-0.75 after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2" ,
33+ // Vertical orientation
34+ "data-[handle-orientation=vertical]:h-0.75 data-[handle-orientation=vertical]:w-full" ,
35+ "data-[handle-orientation=vertical]:after:inset-x-0 data-[handle-orientation=vertical]:after:inset-y-auto" ,
36+ "data-[handle-orientation=vertical]:after:top-1/2 data-[handle-orientation=vertical]:after:left-0" ,
37+ "data-[handle-orientation=vertical]:after:h-1 data-[handle-orientation=vertical]:after:w-full" ,
38+ "data-[handle-orientation=vertical]:after:-translate-y-1/2 data-[handle-orientation=vertical]:after:translate-x-0" ,
3039 className
3140 ) }
3241 size = "3px"
3342 { ...props }
3443 >
35- < 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-lavender-500" />
44+ { /* Horizontal orientation line indicator */ }
45+ < 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-lavender-500 group-data-[handle-orientation=vertical]:hidden" />
46+ { /* Vertical orientation line indicator */ }
47+ < 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-lavender-500 group-data-[handle-orientation=vertical]:block" />
3648 { withHandle && (
37- < div className = "z-10 flex h-5 w-3 flex-col items-center justify-center gap-[0.1875rem] bg-background-dimmed group-hover:hidden" >
38- { Array . from ( { length : 3 } ) . map ( ( _ , index ) => (
39- < div key = { index } className = "h-[0.1875rem] w-0.75 rounded-full bg-charcoal-600" />
40- ) ) }
41- </ div >
49+ < >
50+ { /* Horizontal orientation dots (vertical arrangement) */ }
51+ < 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" >
52+ { Array . from ( { length : 3 } ) . map ( ( _ , index ) => (
53+ < div key = { index } className = "h-[0.1875rem] w-0.75 rounded-full bg-charcoal-600" />
54+ ) ) }
55+ </ div >
56+ { /* Vertical orientation dots (horizontal arrangement) */ }
57+ < 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" >
58+ { Array . from ( { length : 3 } ) . map ( ( _ , index ) => (
59+ < div key = { index } className = "h-0.75 w-[0.1875rem] rounded-full bg-charcoal-600" />
60+ ) ) }
61+ </ div >
62+ </ >
4263 ) }
4364 </ PanelResizer >
4465) ;
0 commit comments