From 807ff63267abd10776436e653b96511dae527498 Mon Sep 17 00:00:00 2001 From: Joseph Izang Date: Wed, 12 Oct 2022 01:37:13 +0100 Subject: [PATCH] more changes as per review comments --- .../src/lib/css/remix-ui-workspace.css | 4 + .../workspace/src/lib/remix-ui-workspace.tsx | 176 ++++++++++++------ 2 files changed, 120 insertions(+), 60 deletions(-) diff --git a/libs/remix-ui/workspace/src/lib/css/remix-ui-workspace.css b/libs/remix-ui/workspace/src/lib/css/remix-ui-workspace.css index 77df4bd152..73c319d295 100644 --- a/libs/remix-ui/workspace/src/lib/css/remix-ui-workspace.css +++ b/libs/remix-ui/workspace/src/lib/css/remix-ui-workspace.css @@ -105,3 +105,7 @@ .remixui_topmenu { padding-bottom: 0.1rem; } + + .remixui_menuwidth { + width: 8rem; + } diff --git a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx index 91cb019a57..ecbd9ed312 100644 --- a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx +++ b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx @@ -302,7 +302,14 @@ export function Workspace () { } > -
+
{ + e.stopPropagation() + createWorkspace() + _paq.push(['trackEvent', 'fileExplorer', 'workspaceMenu', 'workspaceCreate']) + }} + > Create
, - Rename Workspace + + Delete Workspace } > - + > + + {'Delete'} +
, - Delete Workspace + Clone Git Repository } > - + + {'Clone'} + + , + + Rename Workspace + + } + > +
{ + e.stopPropagation() + renameCurrentWorkspace() + _paq.push(['trackEvent', 'fileExplorer', 'workspaceMenu', 'workspaceRename']) + hideIconsMenu(!showIconsMenu) + }} + data-id='workspaceRename' + > + + {'Rename'} +
, } > - + + {'Download'} + , } > - + + {'Restore'} + , - - Clone Git Repository - - } - > - - ] return ( @@ -478,7 +534,7 @@ export function Workspace () { }} icon={'fas fa-bars'} > - + { workspaceMenuIcons.map(m => (