From ef4b480cf45de68146dbd13db7f383b75f172271 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladan=20Tomi=C4=87?= Date: Tue, 3 Oct 2023 13:51:35 +0200 Subject: [PATCH] fix: spinner margin (#322) --- src/pages/drive/index.tsx | 73 ++++++++++++++++++++------------------- 1 file changed, 38 insertions(+), 35 deletions(-) diff --git a/src/pages/drive/index.tsx b/src/pages/drive/index.tsx index 0e35b318..7cdf2119 100644 --- a/src/pages/drive/index.tsx +++ b/src/pages/drive/index.tsx @@ -270,42 +270,45 @@ const Drive: FC = () => { ) : null} - {!loading && - (activePod ? ( - directories?.length || files?.length ? ( -
- {driveView === 'grid' ? ( - - ) : null} - - {driveView === 'list' ? ( - - ) : null} -
+ {!loading && ( +
+ {activePod ? ( + directories?.length || files?.length ? ( +
+ {driveView === 'grid' ? ( + + ) : null} + + {driveView === 'list' ? ( + + ) : null} +
+ ) : ( + setShowUploadFileModal(true)} + /> + ) ) : ( - setShowUploadFileModal(true)} - /> - ) - ) : ( - - ))} + + )} +
+ )} {showUploadFileModal && (