mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-06 10:11:31 +00:00
Persist 2D component and fix 2D prompt style
This commit is contained in:
1 parent
746695b77e
commit
478ff84867
2 files changed
+4
-10
No files matched your search
@@ -254,14 +254,6 @@ export const PageEditor = () => {
|
||||
const display3d = appTabId.value === "3D" ? "block" : "none";
|
||||
const display2d = appTabId.value === "2D" ? "block" : "none";
|
||||
|
||||
const ContentFor2D = () => {
|
||||
return (
|
||||
<KonvaCanvasContainer style={{ display: display2d }}>
|
||||
<KonvaRootComponent className="h-full w-full" />
|
||||
</KonvaCanvasContainer>
|
||||
);
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="w-screen">
|
||||
<TopBar
|
||||
@@ -364,7 +356,9 @@ export const PageEditor = () => {
|
||||
</div>
|
||||
</div>
|
||||
</>
|
||||
<ContentFor2D />
|
||||
<KonvaCanvasContainer style={{ display: display2d }}>
|
||||
<KonvaRootComponent className="h-full w-full" />
|
||||
</KonvaCanvasContainer>
|
||||
|
||||
|
||||
<LoginModal
|
||||
|
||||
@@ -110,7 +110,7 @@ export const PromptBox2D = ({
|
||||
textareaRef.current.style.height = "auto";
|
||||
textareaRef.current.style.height = `${textareaRef.current.scrollHeight}px`;
|
||||
}
|
||||
}, [prompt]);
|
||||
});
|
||||
|
||||
const handleAspectRatioSelect = (selectedItem: PopoverItem) => {
|
||||
setAspectRatioList((prev) =>
|
||||
|
||||
Reference in new issue
Block a user