From 7fc64e9369c888ea5768aa5e86fb3155be746bc5 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Sat, 10 May 2025 00:12:12 +0700 Subject: [PATCH] fix 3d resizing bug --- .../app/src/pages/PageEnigma/PageEditor.tsx | 196 +++++++++--------- 1 file changed, 97 insertions(+), 99 deletions(-) diff --git a/frontend/apps/editor3d/app/src/pages/PageEnigma/PageEditor.tsx b/frontend/apps/editor3d/app/src/pages/PageEnigma/PageEditor.tsx index e429bac026..bddf096d24 100644 --- a/frontend/apps/editor3d/app/src/pages/PageEnigma/PageEditor.tsx +++ b/frontend/apps/editor3d/app/src/pages/PageEnigma/PageEditor.tsx @@ -251,104 +251,6 @@ export const PageEditor = () => { }); }; - const ContentFor3D = () => { - return ( - <> - -
- {/* Engine section/side panel */} -
-
- - - - - - {/* Focal Length Display */} - - - {/* Pose Mode Selector */} - - - {/* Top controls */} -
-
- - -
-
- - {/* Bottom controls */} -
-
- - -
- - -
- - { - if (!editorEngine) { - return; - } - - editorEngine!.positive_prompt = prompt; - }} - snapshotCurrentFrame={editorEngine?.snapShotOfCurrentFrame} - /> - - -
-
-
- - ); - }; - const ContentFor2D = () => { return ( @@ -365,7 +267,103 @@ export const PageEditor = () => { setAppTabId={setAppTabId} /> - {appTabId.value === "3D" ? : } + {appTabId.value === "3D" ? ( + <> + +
+ {/* Engine section/side panel */} +
+
+ + + + + + {/* Focal Length Display */} + + + {/* Pose Mode Selector */} + + + {/* Top controls */} +
+
+ + +
+
+ + {/* Bottom controls */} +
+
+ + +
+ + +
+ + { + if (!editorEngine) { + return; + } + + editorEngine!.positive_prompt = prompt; + }} + snapshotCurrentFrame={editorEngine?.snapShotOfCurrentFrame} + /> + + +
+
+
+ + ) : ( + + )} {}}