From 1868d4b3dc509e4cb1d941eeef4bfc25059e7723 Mon Sep 17 00:00:00 2001 From: myl7 Date: Fri, 19 Nov 2021 04:13:19 +0800 Subject: [PATCH] alloc 1 col in file listing for file selection --- components/FileListing.tsx | 44 ++++++++++++++++++++++++++++++++++---- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/components/FileListing.tsx b/components/FileListing.tsx index 26be464..66eb144 100644 --- a/components/FileListing.tsx +++ b/components/FileListing.tsx @@ -68,8 +68,8 @@ const FileListItem: FunctionComponent<{ const renderEmoji = emojiIcon && !emojiIcon.index return ( -
-
+
+
{/*
{c.file ? c.file.mimeType : 'folder'}
*/}
{renderEmoji ? ( @@ -176,10 +176,32 @@ const FileListing: FunctionComponent<{ query?: ParsedUrlQuery }> = ({ query }) = return (
-
Name
+
Name
Last Modified
Size
Actions
+
+
+ + + + + + +
+
= ({ query }) = {children.map((c: any) => (
{ e.preventDefault() @@ -279,6 +301,20 @@ const FileListing: FunctionComponent<{ query?: ParsedUrlQuery }> = ({ query }) =
)} +
+ + + +
))}