Merge branch 'feat/ui-v0.4' into 'test'

Feat/ui v0.4

See merge request opensource/answer!246
This commit is contained in:
Li Shuailing 2022-11-16 07:56:05 +00:00
commit 20b2d84aa9
1 changed files with 13 additions and 5 deletions

View File

@ -74,11 +74,19 @@ const Header: FC = () => {
<div className="d-flex justify-content-between align-items-center nav-grow flex-nowrap"> <div className="d-flex justify-content-between align-items-center nav-grow flex-nowrap">
<Navbar.Brand to="/" as={Link} className="lh-1 me-0 me-sm-3"> <Navbar.Brand to="/" as={Link} className="lh-1 me-0 me-sm-3">
{brandingInfo.logo ? ( {brandingInfo.logo ? (
<img <>
className="logo rounded-1 me-0" <img
src={brandingInfo.logo} className="d-none d-lg-block logo rounded-1 me-0"
alt="" src={brandingInfo.logo}
/> alt=""
/>
<img
className="logo d-block d-lg-none rounded-1 me-0"
src={brandingInfo.mobile_logo || brandingInfo.mobile_logo}
alt=""
/>
</>
) : ( ) : (
<span>{siteInfo.name || 'Answer'}</span> <span>{siteInfo.name || 'Answer'}</span>
)} )}