This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/answer.git
The following commit(s) were added to refs/heads/main by this push:
new eddedfdf fix: optimization login btn style
eddedfdf is described below
commit eddedfdf1b6aa81292d8b46303e704c2ae242098
Author: shuai <[email protected]>
AuthorDate: Wed May 28 12:45:35 2025 +0800
fix: optimization login btn style
---
ui/src/components/Header/index.tsx | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/ui/src/components/Header/index.tsx
b/ui/src/components/Header/index.tsx
index bd2296b4..0b015ba6 100644
--- a/ui/src/components/Header/index.tsx
+++ b/ui/src/components/Header/index.tsx
@@ -81,7 +81,7 @@ const Header: FC = () => {
setShowMobileSideNav(false);
}, [location.pathname]);
- let navbarStyle = 'theme-colored';
+ let navbarStyle = 'theme-light';
let themeMode = 'light';
const { theme, theme_config } = themeSettingStore((_) => _);
if (theme_config?.[theme]?.navbar_style) {
@@ -186,8 +186,8 @@ const Header: FC = () => {
<>
<Link
className={classnames('me-2 btn btn-link', {
- 'link-light': navbarStyle === 'theme-colored',
- 'link-primary': navbarStyle !== 'theme-colored',
+ 'link-light': navbarStyle === 'theme-dark',
+ 'link-primary': navbarStyle !== 'theme-dark',
})}
onClick={() => floppyNavigation.storageLoginRedirect()}
to={userCenter.getLoginUrl()}>
@@ -197,7 +197,7 @@ const Header: FC = () => {
<Link
className={classnames(
'btn',
- navbarStyle === 'theme-colored' ? 'btn-light' :
'btn-primary',
+ navbarStyle === 'theme-dark' ? 'btn-light' : 'btn-primary',
)}
to={userCenter.getSignUpUrl()}>
{t('btns.signup')}