From 98734ac86840a0140fdc0cc1526ee8bdca514d1a Mon Sep 17 00:00:00 2001 From: lianahus Date: Wed, 27 Sep 2023 17:41:10 +0200 Subject: [PATCH] fe style improvements --- .../components/file-explorer-context-menu.tsx | 2 +- .../src/lib/components/file-explorer-menu.tsx | 25 ++++++++++++------- .../src/lib/components/file-explorer.tsx | 8 +++--- .../workspace/src/lib/css/file-explorer.css | 4 +-- 4 files changed, 23 insertions(+), 16 deletions(-) diff --git a/libs/remix-ui/workspace/src/lib/components/file-explorer-context-menu.tsx b/libs/remix-ui/workspace/src/lib/components/file-explorer-context-menu.tsx index 998d432f16..a11b5ccf41 100644 --- a/libs/remix-ui/workspace/src/lib/components/file-explorer-context-menu.tsx +++ b/libs/remix-ui/workspace/src/lib/components/file-explorer-context-menu.tsx @@ -111,7 +111,7 @@ export const FileExplorerContextMenu = (props: FileExplorerContextMenuProps) => return groupedActions.map((groupItem, groupIndex) => groupItem.map((item, index) => { key++ - const className = `remixui_liitem ${group !== item.group ? 'border-top' : ''}` + const className = `px-3 remixui_liitem ${group !== item.group ? 'border-top' : ''}` group = item.group if (item.name === 'Upload File') { return ( 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 7dcc5cdf16..89d777f6fd 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 @@ -67,12 +67,7 @@ export const FileExplorerMenu = (props: FileExplorerMenuProps) => { return ( <> - - - {props.title} - - - + {state.menuItems.map(({action, title, icon, placement}, index) => { if (action === 'uploadFile') { return ( @@ -83,7 +78,13 @@ export const FileExplorerMenu = (props: FileExplorerMenuProps) => { tooltipText={} key={`index-${action}-${placement}-${icon}`} > -