Skip to content

🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.

fix: accordion action opacity

Innei047c1ee5a28a
diff --git a/src/app/[variants]/(main)/home/_layout/Body/Agent/Actions.tsx b/src/app/[variants]/(main)/home/_layout/Body/Agent/Actions.tsx
index 63fcf26d2cd..4419f6857f7 100644
--- a/src/app/[variants]/(main)/home/_layout/Body/Agent/Actions.tsx
+++ b/src/app/[variants]/(main)/home/_layout/Body/Agent/Actions.tsx
@@ -1,4 +1,4 @@
-import { type MenuProps } from '@lobehub/ui';
+import type { MenuProps } from '@lobehub/ui';
import { ActionIcon, DropdownMenu } from '@lobehub/ui';
import { MoreHorizontalIcon } from 'lucide-react';
import { memo } from 'react';
diff --git a/src/styles/global.ts b/src/styles/global.ts
index 7e12a9c6ed4..1155c757fc3 100644
--- a/src/styles/global.ts
+++ b/src/styles/global.ts
@@ -1,10 +1,11 @@
import { CLASSNAMES } from '@lobehub/ui';
-import { type Theme } from 'antd-style';
+import type { Theme } from 'antd-style';
import { css } from 'antd-style';
// fix ios input keyboard
// overflow: hidden;
// ref: https://zhuanlan.zhihu.com/p/113855026
+// eslint-disable-next-line unicorn/no-anonymous-default-export
export default ({ token }: { prefixCls: string; token: Theme }) => css`
html,
body,
@@ -60,4 +61,9 @@ export default ({ token }: { prefixCls: string; token: Theme }) => css`
.${CLASSNAMES.DropdownMenuTrigger}[data-popup-open]:not([data-no-highlight]) {
background: ${token.colorFillTertiary};
}
+ .accordion-action:has(
+ .${CLASSNAMES.DropdownMenuTrigger}[data-popup-open]:not([data-no-highlight])
+ ) {
+ opacity: 1;
+ }
`;