diff --git a/cvdl-editor/fe2/src/components/HomePage.tsx b/cvdl-editor/fe2/src/components/HomePage.tsx index 08dc7a9..fbab8b4 100644 --- a/cvdl-editor/fe2/src/components/HomePage.tsx +++ b/cvdl-editor/fe2/src/components/HomePage.tsx @@ -59,6 +59,7 @@ function App() { const [currentTab, setCurrentTab] = useState< "content-editor" | "layout-editor" | "schema-editor" | "raw-editor" >("content-editor"); + const [isEditorTabCollapsed, setIsEditorTabCollapsed] = useState(false); useEffect(() => { require("../registerStaticFiles.js"); @@ -301,38 +302,59 @@ function App() {
-
- - - - -
+
+ {isEditorTabCollapsed ? ( + <> + + + ) : ( + <> + + + + + + + )} +