From 2cf3b5c056fbc388cb4728f0114028ba9b2e6689 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Thu, 31 Oct 2024 08:09:11 +0100 Subject: [PATCH] fix workspace name position --- .../workspace/src/lib/components/electron-menu.tsx | 2 +- .../src/lib/components/electron-workspace-name.tsx | 13 ++++++++++--- .../workspace/src/lib/remix-ui-workspace.tsx | 4 ++-- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/libs/remix-ui/workspace/src/lib/components/electron-menu.tsx b/libs/remix-ui/workspace/src/lib/components/electron-menu.tsx index eee53344f7..51294ccbaf 100644 --- a/libs/remix-ui/workspace/src/lib/components/electron-menu.tsx +++ b/libs/remix-ui/workspace/src/lib/components/electron-menu.tsx @@ -44,7 +44,7 @@ export const ElectronMenu = () => { >
{ await openFolderElectron(folder) }} className="pl-2 recentfolder_name pr-2">{lastFolderName(folder)} - { await openFolderElectron(folder) }} data-id={{ folder }} className="recentfolder_path pr-2">{folder} + { await openFolderElectron(folder) }} data-id={`recent_folder_${folder}`} className="recentfolder_path pr-2">{folder} { global.dispatchRemoveRecentFolder(folder) diff --git a/libs/remix-ui/workspace/src/lib/components/electron-workspace-name.tsx b/libs/remix-ui/workspace/src/lib/components/electron-workspace-name.tsx index 8d7983f094..0df2e312c9 100644 --- a/libs/remix-ui/workspace/src/lib/components/electron-workspace-name.tsx +++ b/libs/remix-ui/workspace/src/lib/components/electron-workspace-name.tsx @@ -23,14 +23,21 @@ export const ElectronWorkspaceName = (props: ElectronWorkspaceNameProps) => { return ( (dir === undefined || dir === '') ? <> : -
+
-
{parsePath()}
+
{parsePath()}
{
) -} +} \ No newline at end of file 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 25e27183b5..ec2cffe87a 100644 --- a/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx +++ b/libs/remix-ui/workspace/src/lib/remix-ui-workspace.tsx @@ -1052,7 +1052,7 @@ export function Workspace() { {selectedWorkspace && selectedWorkspace.name === 'code-sample' && - ):null} + ):}