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 => (