From f6c359015e38420a2118a70d0306361029bb29fc Mon Sep 17 00:00:00 2001 From: lianahus Date: Mon, 25 Sep 2023 18:58:48 +0200 Subject: [PATCH] refactor menu --- .../src/lib/components/file-explorer-menu.tsx | 2 +- .../src/lib/components/file-explorer.tsx | 86 ++++++++++--------- 2 files changed, 45 insertions(+), 43 deletions(-) diff --git a/libs/remix-ui/workspace/src/lib/components/file-explorer-menu.tsx b/libs/remix-ui/workspace/src/lib/components/file-explorer-menu.tsx index 973a164401..7dcc5cdf16 100644 --- a/libs/remix-ui/workspace/src/lib/components/file-explorer-menu.tsx +++ b/libs/remix-ui/workspace/src/lib/components/file-explorer-menu.tsx @@ -151,7 +151,7 @@ export const FileExplorerMenu = (props: FileExplorerMenuProps) => { state.actions[action]() } }} - className={'newFile ' + icon + ' px-1 remixui_newFile'} + className={'newFile ' + icon + ' pr-2 pl-1 remixui_newFile'} key={`${action}-${title}-${index}`} > diff --git a/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx b/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx index 70ebf68898..a3b94e22c1 100644 --- a/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx +++ b/libs/remix-ui/workspace/src/lib/components/file-explorer.tsx @@ -319,49 +319,51 @@ export const FileExplorer = (props: FileExplorerProps) => {
- - -
- } - expand={true} - > -
- - {files[ROOT_PATH] && - Object.keys(files[ROOT_PATH]).map((key, index) => ( - - ))} - +
  • +
    + +
    + +
    +
    - +
  • +
    + + {files[ROOT_PATH] && + Object.keys(files[ROOT_PATH]).map((key, index) => ( + + ))} + +