refactor(root&header): optimize root and logo style
This commit is contained in:
parent
1ef3b2bc9f
commit
ec1a826ed3
|
@ -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" />-->
|
||||
|
|
|
@ -45,7 +45,7 @@ const Index: FC<Props> = ({ className, data }) => {
|
|||
count: data?.collectCount,
|
||||
});
|
||||
}
|
||||
}, [data]);
|
||||
}, []);
|
||||
|
||||
const handleVote = (type: 'up' | 'down') => {
|
||||
if (!isLogin(true)) {
|
||||
|
|
|
@ -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>
|
||||
)}
|
||||
|
|
|
@ -14,6 +14,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
:root {
|
||||
overflow-y: scroll;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
padding: 0;
|
||||
|
|
Loading…
Reference in New Issue