From 8d915d4477d6588e9ecb94a184c80b4d96b10f0e Mon Sep 17 00:00:00 2001 From: subnub Date: Sat, 12 Oct 2024 17:50:18 -0400 Subject: [PATCH] cleaning up tailwind --- src/components/DownloadPage/DownloadPage.tsx | 50 ++++++---------- .../FileInfoPopup/FileInfoPopup.tsx | 58 +++++++------------ src/components/FileItem/FileItem.tsx | 14 ++--- src/components/Files/Files.tsx | 39 +++++-------- src/components/FolderItem/FolderItem.tsx | 16 ++--- src/components/Folders/Folders.tsx | 2 +- src/components/QuickAccess/QuickAccess.tsx | 4 +- 7 files changed, 69 insertions(+), 114 deletions(-) diff --git a/src/components/DownloadPage/DownloadPage.tsx b/src/components/DownloadPage/DownloadPage.tsx index 23d51c1..cfcd856 100644 --- a/src/components/DownloadPage/DownloadPage.tsx +++ b/src/components/DownloadPage/DownloadPage.tsx @@ -59,13 +59,13 @@ const PublicDownloadPage = () => {
- +
@@ -78,43 +78,29 @@ const PublicDownloadPage = () => {

-
-
- - Type - - - {fileExtension} - +
+
+ Type + {fileExtension}
-
- - Size - - - {fileSize} - +
+ Size + {fileSize}
-
- - Created - - - {formattedDate} - +
+ Created + {formattedDate}
-
- - Access - - +
+ Access + {file.metadata.link ? "Public" : "Private"}
-
+
Download diff --git a/src/components/FileInfoPopup/FileInfoPopup.tsx b/src/components/FileInfoPopup/FileInfoPopup.tsx index 42c1244..916728e 100644 --- a/src/components/FileInfoPopup/FileInfoPopup.tsx +++ b/src/components/FileInfoPopup/FileInfoPopup.tsx @@ -72,13 +72,13 @@ const FileInfoPopup = memo(() => { )}
- +
@@ -93,63 +93,45 @@ const FileInfoPopup = memo(() => {
-
-
- - Type - - - {fileExtension} - +
+
+ Type + {fileExtension}
-
- - Size - - - {fileSize} - +
+ Size + {fileSize}
-
- - Created - - - {formattedDate} - +
+ Created + {formattedDate}
-
- - Access - - +
+ Access + {file.metadata.link ? "Public" : "Private"}
-
diff --git a/src/components/FileItem/FileItem.tsx b/src/components/FileItem/FileItem.tsx index c31a518..01ddefd 100644 --- a/src/components/FileItem/FileItem.tsx +++ b/src/components/FileItem/FileItem.tsx @@ -119,7 +119,7 @@ const FileItem: React.FC = memo((props) => {
@@ -173,9 +173,9 @@ const FileItem: React.FC = memo((props) => { return (
= memo((props) => { className={classNames( "p-3 overflow-hidden text-ellipsis block w-full animate", elementSelected || elementMultiSelected - ? "bg-[#3c85ee] text-white" - : "bg-white text-[#637381]" + ? "bg-primary text-white" + : "bg-white text-gray-primary" )} >

= memo((props) => {