fix: make small fields draggable (#1551)

This commit is contained in:
Catalin Pit
2024-12-27 06:22:56 +02:00
committed by GitHub
parent 41218e2585
commit 32857bbfeb

View File

@ -214,6 +214,12 @@ export const FieldItem = ({
onDragStart={() => onFieldActivate?.()}
onResizeStart={() => onFieldActivate?.()}
enableResizing={!fixedSize}
resizeHandleStyles={{
bottom: { bottom: -8, cursor: 'ns-resize' },
top: { top: -8, cursor: 'ns-resize' },
left: { cursor: 'ew-resize' },
right: { cursor: 'ew-resize' },
}}
onResizeStop={(_e, _d, ref) => {
onFieldDeactivate?.();
onResize?.(ref);