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:56 UTC

(answer) branch test created (now 58a45c0e)

This is an automated email from the ASF dual-hosted git repository.

shuai pushed a change to branch test
in repository https://gitbox.apache.org/repos/asf/answer.git


      at 58a45c0e fix: optimization login btn style

This branch includes the following new commits:

     new 58a45c0e fix: optimization login btn style

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



(answer) 01/01: fix: optimization login btn style

Posted by sh...@apache.org.
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')}