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

shuai pushed a commit to branch feat/1.6.1/md
in repository https://gitbox.apache.org/repos/asf/answer.git


The following commit(s) were added to refs/heads/feat/1.6.1/md by this push:
     new 2bc3167d fix: Navigation dropdown menu theme color should follow the 
theme color of the application #1355
2bc3167d is described below

commit 2bc3167dbd2d0d26a9bad74c084f3b80f9b72e26
Author: shuai <[email protected]>
AuthorDate: Thu Jun 26 17:01:14 2025 +0800

    fix: Navigation dropdown menu theme color should follow the theme color of 
the application #1355
---
 ui/src/components/Header/components/NavItems/index.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ui/src/components/Header/components/NavItems/index.tsx 
b/ui/src/components/Header/components/NavItems/index.tsx
index 3dbed4e4..ce373867 100644
--- a/ui/src/components/Header/components/NavItems/index.tsx
+++ b/ui/src/components/Header/components/NavItems/index.tsx
@@ -24,7 +24,7 @@ import { NavLink, useNavigate } from 'react-router-dom';
 
 import type * as Type from '@/common/interface';
 import { Avatar, Icon } from '@/components';
-import { floppyNavigation } from '@/utils';
+import { floppyNavigation, isDarkTheme } from '@/utils';
 import { userCenterStore } from '@/stores';
 import { REACT_BASE_PATH } from '@/router/alias';
 
@@ -80,7 +80,7 @@ const Index: FC<Props> = ({ redDot, userInfo, logOut }) => {
         </NavLink>
       </Nav>
 
-      <Dropdown align="end">
+      <Dropdown align="end" data-bs-theme={isDarkTheme() ? 'dark' : 'light'}>
         <Dropdown.Toggle
           variant="success"
           id="dropdown-basic"

Reply via email to