diff --git a/web-src/src/app/pages/main-page.tsx b/web-src/src/app/pages/main-page.tsx index 97abf36..f40382d 100644 --- a/web-src/src/app/pages/main-page.tsx +++ b/web-src/src/app/pages/main-page.tsx @@ -1,7 +1,7 @@ import {Layout} from "@douyinfe/semi-ui"; import Sider from "@douyinfe/semi-ui/lib/es/layout/Sider"; import {useObservableState} from "observable-hooks"; -import React, {ReactNode, useContext, useEffect, useRef} from "react"; +import React, {ReactNode, useContext, useEffect} from "react"; import {SharedSubjectContext} from "../context/shared-subjects"; import {MainFooter} from "../shared/main-footer"; import {MainNav} from "../shared/main-nav"; @@ -11,7 +11,7 @@ import "./main-page.scss" export const MainPage = () => { - const {Header, Footer, Content} = Layout; + const {Header, Content} = Layout; const sharedSubs = useContext(SharedSubjectContext); const [activeToolNode, setActiveToolNode] = useObservableState((obs) => { @@ -29,9 +29,6 @@ export const MainPage = () => { }); }, [setActiveToolNode, sharedSubs]); - // listen resize window event and adjust content height - const centerContainerRef = useRef(null) - return ( { @@ -41,7 +38,7 @@ export const MainPage = () => { {!isTauriApp &&
} }/> - + {!isTauriApp && } diff --git a/web-src/src/app/shared/main-nav.tsx b/web-src/src/app/shared/main-nav.tsx index b891c49..833101f 100644 --- a/web-src/src/app/shared/main-nav.tsx +++ b/web-src/src/app/shared/main-nav.tsx @@ -1,5 +1,5 @@ import {IconGithubLogo} from "@douyinfe/semi-icons"; -import {Button, Nav, Space, Tooltip, Typography} from "@douyinfe/semi-ui"; +import {Button, Nav, Space, Tooltip} from "@douyinfe/semi-ui"; import {DownloadOne} from "@icon-park/react"; import "./main-nav.scss" @@ -22,12 +22,12 @@ export const MainNav = () => { const navFooter = - Download Offline Client} + @@ -242,7 +242,7 @@ export const JsonFormatterBlock = () => { /> - +