From 9ec195fbc6314ad73b92fd13b3822753e6240ce7 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Mon, 14 Oct 2024 09:12:19 +0200 Subject: [PATCH 1/2] placement of folder name on desktop --- .../workspace/src/lib/components/electron-menu.tsx | 2 +- .../src/lib/components/electron-workspace-name.tsx | 11 +++++++++-- .../remix-ui/workspace/src/lib/remix-ui-workspace.tsx | 4 ++-- 3 files changed, 12 insertions(+), 5 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..33f23c5d8d 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()}
{selectedWorkspace && selectedWorkspace.name === 'code-sample' && - ):null} + ):}
From 2ce6a91f9569e83986a62838c0e98cbd34bf8017 Mon Sep 17 00:00:00 2001 From: bunsenstraat Date: Mon, 14 Oct 2024 09:25:51 +0200 Subject: [PATCH 2/2] lint --- .../workspace/src/lib/components/electron-workspace-name.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 33f23c5d8d..3251fb77d6 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 @@ -36,7 +36,7 @@ export const ElectronWorkspaceName = (props: ElectronWorkspaceNameProps) => { textOverflow: 'ellipsis', flexGrow: 1, }} - + >{parsePath()}