Skip to content

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.

fix: branding logos in header

shuaibcd94c7e017b
diff --git a/ui/src/components/Header/index.tsx b/ui/src/components/Header/index.tsx
index 8aaee1e5..f6537d74 100644
--- a/ui/src/components/Header/index.tsx
+++ b/ui/src/components/Header/index.tsx
@@ -82,8 +82,8 @@ const Header: FC = () => {
/>
<img
- className="logo d-block d-lg-none rounded-1 me-0"
- src={brandingInfo.mobile_logo || brandingInfo.mobile_logo}
+ className="lg-none logo rounded-1 me-0"
+ src={brandingInfo.mobile_logo || brandingInfo.logo}
alt=""
/>
</>
diff --git a/ui/src/pages/Layout/index.tsx b/ui/src/pages/Layout/index.tsx
index 94478af9..d0f5a075 100644
--- a/ui/src/pages/Layout/index.tsx
+++ b/ui/src/pages/Layout/index.tsx
@@ -10,7 +10,8 @@ import { Header, Footer, Toast } from '@/components';
const Layout: FC = () => {
const { msg: toastMsg, variant, clear: toastClear } = toastStore();
const { siteInfo } = siteInfoStore.getState();
- const { favicon } = brandingStore((state) => state.branding);
+ const { favicon, square_icon } = brandingStore((state) => state.branding);
+
const closeToast = () => {
toastClear();
};
@@ -18,7 +19,14 @@ const Layout: FC = () => {
return (
<HelmetProvider>
<Helmet>
- <link rel="icon" href={favicon || '/favicon.ico'} />
+ <link
+ rel="icon"
+ type="image/png"
+ href={favicon || square_icon || '/favicon.ico'}
+ />
+ <link rel="icon" type="image/png" sizes="192x192" href={square_icon} />
+ <link rel="apple-touch-icon" type="image/png" href={square_icon} />
+
{siteInfo && <meta name="description" content={siteInfo.description} />}
</Helmet>
<SWRConfig