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
The following commit(s) were added to refs/heads/test by this push:
new e9ea91d2 fix: add data-bs-theme attribute for dropdown component
e9ea91d2 is described below
commit e9ea91d260753864b3254933a76e3a46102c56b4
Author: shuai <[email protected]>
AuthorDate: Wed Aug 20 17:10:53 2025 +0800
fix: add data-bs-theme attribute for dropdown component
---
ui/src/components/Header/components/NavItems/index.tsx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ui/src/components/Header/components/NavItems/index.tsx
b/ui/src/components/Header/components/NavItems/index.tsx
index ce373867..61733695 100644
--- a/ui/src/components/Header/components/NavItems/index.tsx
+++ b/ui/src/components/Header/components/NavItems/index.tsx
@@ -123,7 +123,7 @@ const Index: FC<Props> = ({ redDot, userInfo, logOut }) => {
{ucAgent?.enabled &&
(ucAgent?.agent_info?.url ||
ucAgent?.agent_info?.control_center?.length) ? (
- <Dropdown align="end">
+ <Dropdown align="end" data-bs-theme={isDarkTheme() ? 'dark' : 'light'}>
<Dropdown.Toggle
variant="success"
id="dropdown-uca"