You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@answer.apache.org by sh...@apache.org on 2025/05/28 04:45:57 UTC
(answer) 01/01: fix: optimization login btn style
This is an automated email from the ASF dual-hosted git repository.
shuai pushed a commit to branch test
in repository https://gitbox.apache.org/repos/asf/answer.git
commit 58a45c0e33a60bb7e7b25ea88610bf68dff83252
Author: shuai <li...@sifou.com>
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')}