File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed
Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -75,27 +75,24 @@ const Modal = ({
7575 return (
7676 < >
7777 { isModalOpen && (
78- < div className = "fixed inset-0 z-40 flex items-start justify-center pt-[5vh] " >
78+ < div className = "fixed inset-0 z-40 flex items-center justify-center" >
7979 < div className = "fixed inset-0 bg-black opacity-50" > </ div >
8080 < div
8181 style = { {
8282 transform : `translate(${ position . x } px, ${ position . y } px)` ,
8383 cursor : isDragging ? "grabbing" : "grab" ,
8484 userSelect : "none" ,
8585 } }
86- className = { `z-50 mx-auto overflow-auto rounded-lg border border-gray-900 bg-gray-500/70 shadow-xl ${ className } ` }
86+ className = { `z-50 overflow-auto rounded-lg border border-gray-900 bg-gray-500 shadow-xl ${ className } ` }
8787 { ...props }
8888 >
8989 { title && (
9090 < div
91- className = "flex gap-4 border-b border-gray-500 p-4 cursor-grab select-none bg-gray-500 "
91+ className = "flex cursor-grab select-none gap-4 border-b border-gray-500 p-4"
9292 onMouseDown = { handleMouseDown }
9393 onDragStart = { ( e ) => e . preventDefault ( ) }
9494 >
95- < button
96- onClick = { closeModal }
97- className = "pr-3 bg-gray-500 hover:bg-gray-600"
98- >
95+ < button onClick = { closeModal } >
9996 < FontAwesomeIcon
10097 icon = { faRectangleXmark }
10198 className = "text-2xl text-white"
@@ -104,11 +101,15 @@ const Modal = ({
104101 < p className = "text-white" > { title } </ p >
105102 </ div >
106103 ) }
107- < div className = { `h-full w-full bg-gray-500/70 ${ title && "p-4" } ` } >
104+ < div
105+ className = { `h-full w-full cursor-default bg-gray-500 ${
106+ title && "p-4"
107+ } `}
108+ >
108109 { children }
109110 </ div >
110111 { footer && (
111- < div className = "border-t border-gray-500 p-4 bg-gray-500" >
112+ < div className = "border-t border-gray-500 bg-gray-500 p-4 " >
112113 { footer }
113114 </ div >
114115 ) }
You can’t perform that action at this time.
0 commit comments