Fixed add image dropbox

This commit is contained in:
Jaret Burkett committed 2025-02-22 11:59:21 -07:00
1 parent f60698d0ee
commit a7a9c11d9e
1 file changed
+5 -11
+5 -11
View File
@@ -92,23 +92,18 @@ export default function AddImagesModal() {
className="relative transform overflow-hidden rounded-lg bg-gray-800 text-left shadow-xl transition-all data-closed:translate-y-4 data-closed:opacity-0 data-enter:duration-300 data-enter:ease-out data-leave:duration-200 data-leave:ease-in sm:my-8 sm:w-full sm:max-w-lg data-closed:sm:translate-y-0 data-closed:sm:scale-95" className="relative transform overflow-hidden rounded-lg bg-gray-800 text-left shadow-xl transition-all data-closed:translate-y-4 data-closed:opacity-0 data-enter:duration-300 data-enter:ease-out data-leave:duration-200 data-leave:ease-in sm:my-8 sm:w-full sm:max-w-lg data-closed:sm:translate-y-0 data-closed:sm:scale-95"
> >
<div className="bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4"> <div className="bg-gray-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4">
<div className="sm:flex sm:items-start"> <div className="text-center">
<div <DialogTitle as="h3" className="text-base font-semibold text-gray-200 mb-4">
className="mx-auto flex size-12 shrink-0 items-center justify-center rounded-full bg-slate-600 sm:mx-0 sm:size-10"
>
<FaUpload aria-hidden="true" className="size-6 bg-slate-600" />
</div>
<div className="mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left">
<DialogTitle as="h3" className="text-base font-semibold text-gray-200">
Add Images to: {addImagesModalInfo?.datasetName} Add Images to: {addImagesModalInfo?.datasetName}
</DialogTitle> </DialogTitle>
<div className="mt-2"> <div className="w-full">
<div <div
{...getRootProps()} {...getRootProps()}
className={`mt-4 p-6 border-2 border-dashed rounded-lg cursor-pointer className={`h-40 w-full flex flex-col items-center justify-center border-2 border-dashed rounded-lg cursor-pointer transition-colors duration-200
${isDragActive ? 'border-blue-500 bg-blue-50/10' : 'border-gray-600'}`} ${isDragActive ? 'border-blue-500 bg-blue-50/10' : 'border-gray-600'}`}
> >
<input {...getInputProps()} /> <input {...getInputProps()} />
<FaUpload className="size-8 mb-3 text-gray-400" />
<p className="text-sm text-gray-200 text-center"> <p className="text-sm text-gray-200 text-center">
{isDragActive {isDragActive
? 'Drop the files here...' ? 'Drop the files here...'
@@ -131,7 +126,6 @@ export default function AddImagesModal() {
</div> </div>
</div> </div>
</div> </div>
</div>
<div className="bg-gray-700 px-4 py-3 sm:flex sm:flex-row-reverse sm:px-6"> <div className="bg-gray-700 px-4 py-3 sm:flex sm:flex-row-reverse sm:px-6">
<button <button
type="button" type="button"