diff --git a/src/components/Explorer/FileExplorer.tsx b/src/components/Explorer/FileExplorer.tsx index 44776b458..d40106a50 100644 --- a/src/components/Explorer/FileExplorer.tsx +++ b/src/components/Explorer/FileExplorer.tsx @@ -272,16 +272,16 @@ export const FileExplorerRowElement = ({ { - console.log(event.target.value) + row.rowRenameEnd(event) }} - > + > )}
{row.status}
{ - row.rowRename() + row.rowRenameStart() }} onDelete={() => {}} onClone={() => {}} diff --git a/src/components/Explorer/ProjectExplorer.tsx b/src/components/Explorer/ProjectExplorer.tsx index 9e2ddd714..090f99ca7 100644 --- a/src/components/Explorer/ProjectExplorer.tsx +++ b/src/components/Explorer/ProjectExplorer.tsx @@ -159,9 +159,17 @@ export const ProjectExplorer = ({ }, isFake: false, activeIndex: activeIndex, - rowRename: () => { + rowRenameStart: () => { setIsRenaming(true) }, + rowRenameEnd: (event) => { + setIsRenaming(false) + const requestedRename = String(event.target.value) + const name = row.name + + // if (requestedProjectName !== projectName) { + // } + } } return row diff --git a/src/lib/resetCameraPosition.ts b/src/lib/resetCameraPosition.ts index 612de1f67..e21697702 100644 --- a/src/lib/resetCameraPosition.ts +++ b/src/lib/resetCameraPosition.ts @@ -24,6 +24,8 @@ export async function resetCameraPosition() { // We need a padding of 0.1 for zoom_to_fit for all E2E tests since they were originally // written with zoom_to_fit with padding 0.1 const padding = 0.1 + await engineStreamZoomToFit({ engineCommandManager, padding }) + return if (isPlaywright()) { await engineStreamZoomToFit({ engineCommandManager, padding }) } else {