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
}
>
- {
e.stopPropagation()
- renameCurrentWorkspace()
- _paq.push(['trackEvent', 'fileExplorer', 'workspaceMenu', 'workspaceRename'])
+ deleteCurrentWorkspace()
+ _paq.push(['trackEvent', 'fileExplorer', 'workspaceMenu', 'workspaceDelete'])
hideIconsMenu(!showIconsMenu)
}}
- className='far fa-edit w-100'>
- {'Rename'}
-
+ >
+ {
+ e.stopPropagation()
+ deleteCurrentWorkspace()
+ _paq.push(['trackEvent', 'fileExplorer', 'workspaceMenu', 'workspaceDelete'])
+ hideIconsMenu(!showIconsMenu)
+ }}
+ className='far fa-trash'
+ >
+
+ {'Delete'}
+
,
- Delete Workspace
+ Clone Git Repository
}
>
- {
e.stopPropagation()
- deleteCurrentWorkspace()
- _paq.push(['trackEvent', 'fileExplorer', 'workspaceMenu', 'workspaceDelete'])
+ cloneGitRepository()
+ _paq.push(['trackEvent', 'fileExplorer', 'workspaceMenu', 'cloneGitRepository'])
hideIconsMenu(!showIconsMenu)
}}
- className='far fa-trash w-100'
>
- {'Delete'}
-
+ {
+ e.stopPropagation()
+ cloneGitRepository()
+ _paq.push(['trackEvent', 'fileExplorer', 'workspaceMenu', 'cloneGitRepository'])
+ hideIconsMenu(!showIconsMenu)
+ }}
+ className='far fa-clone'
+ >
+
+ {'Clone'}
+
+ ,
+
+ Rename Workspace
+
+ }
+ >
+ {
+ e.stopPropagation()
+ renameCurrentWorkspace()
+ _paq.push(['trackEvent', 'fileExplorer', 'workspaceMenu', 'workspaceRename'])
+ hideIconsMenu(!showIconsMenu)
+ }}
+ data-id='workspaceRename'
+ >
+ {
+ e.stopPropagation()
+ renameCurrentWorkspace()
+ _paq.push(['trackEvent', 'fileExplorer', 'workspaceMenu', 'workspaceRename'])
+ hideIconsMenu(!showIconsMenu)
+ }}
+ className='far fa-edit'>
+
+ {'Rename'}
+
,
}
>
- {
e.stopPropagation()
@@ -381,10 +438,22 @@ export function Workspace () {
_paq.push(['trackEvent', 'fileExplorer', 'workspaceMenu', 'workspacesDownload'])
hideIconsMenu(!showIconsMenu)
}}
- className='far fa-download w-100'
>
- {'Download'}
-
+ {
+ e.stopPropagation()
+ downloadWorkspaces()
+ _paq.push(['trackEvent', 'fileExplorer', 'workspaceMenu', 'workspacesDownload'])
+ hideIconsMenu(!showIconsMenu)
+ }}
+ className='far fa-download'
+ >
+
+ {'Download'}
+
,
}
>
- {
e.stopPropagation()
@@ -404,34 +471,23 @@ export function Workspace () {
_paq.push(['trackEvent', 'fileExplorer', 'workspaceMenu', 'workspacesRestore'])
hideIconsMenu(!showIconsMenu)
}}
- className='far fa-upload w-100'
>
- {'Restore'}
-
+ {
+ e.stopPropagation()
+ restoreBackup()
+ _paq.push(['trackEvent', 'fileExplorer', 'workspaceMenu', 'workspacesRestore'])
+ hideIconsMenu(!showIconsMenu)
+ }}
+ className='far fa-upload'
+ >
+
+ {'Restore'}
+
,
-
- Clone Git Repository
-
- }
- >
- {
- e.stopPropagation()
- cloneGitRepository()
- _paq.push(['trackEvent', 'fileExplorer', 'workspaceMenu', 'cloneGitRepository'])
- hideIconsMenu(!showIconsMenu)
- }}
- className='far fa-clone w-100'
- >
- {'Clone'}
-
-
]
return (
@@ -478,7 +534,7 @@ export function Workspace () {
}}
icon={'fas fa-bars'}
>
-
+
{
workspaceMenuIcons.map(m => (