mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-22 08:38:29 +02:00
Fix resize cursor
This commit is contained in:
@@ -30,8 +30,8 @@ export function ResizeHandle({
|
|||||||
style={style}
|
style={style}
|
||||||
className={classnames(
|
className={classnames(
|
||||||
className,
|
className,
|
||||||
'group z-10 flex cursor-ew-resize',
|
'group z-10 flex',
|
||||||
vertical ? 'w-full h-3 cursor-ns-resize' : 'h-full w-3 cursor-ew-resize',
|
vertical ? 'w-full h-3 cursor-row-resize' : 'h-full w-3 cursor-col-resize',
|
||||||
justify === 'center' && 'justify-center',
|
justify === 'center' && 'justify-center',
|
||||||
justify === 'end' && 'justify-end',
|
justify === 'end' && 'justify-end',
|
||||||
justify === 'start' && 'justify-start',
|
justify === 'start' && 'justify-start',
|
||||||
@@ -46,9 +46,9 @@ export function ResizeHandle({
|
|||||||
{isResizing && (
|
{isResizing && (
|
||||||
<div
|
<div
|
||||||
className={classnames(
|
className={classnames(
|
||||||
'fixed -left-20 -right-20 -top-20 -bottom-20 cursor-ew-resize',
|
'fixed -left-20 -right-20 -top-20 -bottom-20',
|
||||||
vertical && 'cursor-ns-resize',
|
vertical && 'cursor-row-resize',
|
||||||
!vertical && 'cursor-ew-resize',
|
!vertical && 'cursor-col-resize',
|
||||||
)}
|
)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
|||||||
Reference in New Issue
Block a user