mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
fix: make small fields draggable (#1551)
This commit is contained in:
@ -214,6 +214,12 @@ export const FieldItem = ({
|
|||||||
onDragStart={() => onFieldActivate?.()}
|
onDragStart={() => onFieldActivate?.()}
|
||||||
onResizeStart={() => onFieldActivate?.()}
|
onResizeStart={() => onFieldActivate?.()}
|
||||||
enableResizing={!fixedSize}
|
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) => {
|
onResizeStop={(_e, _d, ref) => {
|
||||||
onFieldDeactivate?.();
|
onFieldDeactivate?.();
|
||||||
onResize?.(ref);
|
onResize?.(ref);
|
||||||
|
|||||||
Reference in New Issue
Block a user