File tree Expand file tree Collapse file tree
src/frontend/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -39,20 +39,20 @@ export const NERDraggableFormModal = ({
3939 return (
4040 < >
4141 { open && (
42- < Draggable handle = ".draggable-handle" nodeRef = { nodeRef } >
43- < Box
44- ref = { nodeRef }
45- sx = { {
46- position : 'fixed' ,
47- top : '50%' ,
48- right : '5 %' ,
49- backgroundColor : theme . palette . background . paper ,
50- boxShadow : 24 ,
51- zIndex : 6 ,
52- width : '40%' ,
53- borderRadius : '8px'
54- } }
55- >
42+ < Draggable handle = ".draggable-handle" nodeRef = { nodeRef } positionOffset = { { x : '-50%' , y : '-50%' } } >
43+ < Box
44+ ref = { nodeRef }
45+ sx = { {
46+ position : 'fixed' ,
47+ top : '50%' ,
48+ left : '50 %' ,
49+ backgroundColor : theme . palette . background . paper ,
50+ boxShadow : 24 ,
51+ zIndex : 6 ,
52+ width : '40%' ,
53+ borderRadius : '8px'
54+ } }
55+ >
5656 { showCloseButton && (
5757 < IconButton
5858 aria-label = "close"
@@ -81,8 +81,8 @@ export const NERDraggableFormModal = ({
8181 </ NERSuccessButton >
8282 </ Box >
8383 ) }
84- </ Box >
85- </ Draggable >
84+ </ Box >
85+ </ Draggable >
8686 ) }
8787 </ >
8888 ) ;
You can’t perform that action at this time.
0 commit comments