From ee0e82ff1f5dff81a084db8ab3f6c3b0800665a9 Mon Sep 17 00:00:00 2001 From: yogeshbhutkar Date: Tue, 12 Sep 2023 18:15:44 +0530 Subject: [PATCH] Removed duplicate shadows and center aligned the control buttons --- src/Components/Common/FilePreviewDialog.tsx | 86 ++++++++++----------- 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/src/Components/Common/FilePreviewDialog.tsx b/src/Components/Common/FilePreviewDialog.tsx index fa728826d32..1cb37ecfa6c 100644 --- a/src/Components/Common/FilePreviewDialog.tsx +++ b/src/Components/Common/FilePreviewDialog.tsx @@ -68,7 +68,7 @@ const FilePreviewDialog = (props: FilePreviewProps) => { }; return ( -
+
{ leaveFrom="opacity-100" leaveTo="opacity-0" > -
+
@@ -97,7 +97,7 @@ const FilePreviewDialog = (props: FilePreviewProps) => { className={classNames( className, fixedWidth && "w-full max-w-md", - "transform rounded-2xl p-6 text-left align-middle shadow-xl transition-all" + "transform rounded-2xl p-6 text-left align-middle transition-all" )} > { {fileUrl && fileUrl.length > 0 ? (
-
+
+ {downloadURL && downloadURL.length > 0 && ( + + + Download + + )} + +
+
+
+ {file_state.isImage ? ( + file + ) : ( +