A Q&A platform software for teams at any scales. Whether it's a community forum, help center, or knowledge management platform, you can always count on Apache Answer.
refactor(root&header): optimize root and logo style
haitao(lj)ec1a826ed3c4
diff --git a/ui/public/index.html b/ui/public/index.htmlindex 5dd5d5f4..efa315fc 100644--- a/ui/public/index.html+++ b/ui/public/index.html@@ -2,7 +2,7 @@<html><head><meta charset="utf-8" />- <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />+ <link rel="icon" href="/favicon.ico" /><meta name="viewport" content="width=device-width, initial-scale=1" /><meta name="theme-color" content="#000000" /><!-- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />-->diff --git a/ui/src/components/Actions/index.tsx b/ui/src/components/Actions/index.tsxindex 4f3ae240..87c35cef 100644--- a/ui/src/components/Actions/index.tsx+++ b/ui/src/components/Actions/index.tsx@@ -45,7 +45,7 @@ const Index: FC<Props> = ({ className, data }) => {count: data?.collectCount,});}- }, [data]);+ }, []);const handleVote = (type: 'up' | 'down') => {if (!isLogin(true)) {diff --git a/ui/src/components/Header/index.tsx b/ui/src/components/Header/index.tsxindex 2cfffe69..2d2ef364 100644--- a/ui/src/components/Header/index.tsx+++ b/ui/src/components/Header/index.tsx@@ -48,13 +48,9 @@ const Header: FC = () => {return (<Navbar variant="dark" expand="lg" className="sticky-top" id="header"><Container className="d-flex align-items-center">- <Navbar.Brand href="/">+ <Navbar.Brand className="lh-1" href="/">{interfaceInfo.logo ? (- <img- className="logo rounded-1 me-0"- src={interfaceInfo.logo}- alt=""- />+ <img className="logo" src={interfaceInfo.logo} alt="" />) : (<span>{siteInfo.name || 'Answer'}</span>)}diff --git a/ui/src/index.scss b/ui/src/index.scssindex e1bdbc64..7b5917f0 100644--- a/ui/src/index.scss+++ b/ui/src/index.scss@@ -14,6 +14,10 @@}}+:root {+ overflow-y: scroll;+}+html,body {padding: 0;