@@ -107,89 +105,107 @@ export default function AppSelector({ isMobile }: IAppSelector) {
-
{t('common.account.account')}
-
+ }
- setShowAccountSettingModal({ payload: 'members' })}>
+ {({ active }) =>
setShowAccountSettingModal({ payload: 'members' })}>
{t('common.userProfile.settings')}
-
+
}
{canEmailSupport &&
-
{t('common.userProfile.emailSupport')}
-
+ }
}
-
{t('common.userProfile.communityFeedback')}
-
+ }
-
{t('common.userProfile.community')}
-
+ }
-
{t('common.userProfile.helpCenter')}
-
+ }
-
{t('common.userProfile.roadmap')}
-
+ }
{
document?.body?.getAttribute('data-public-site-about') !== 'hide' && (
- setAboutVisible(true)}>
+ {({ active }) =>
setAboutVisible(true)}>
{t('common.userProfile.about')}
{langeniusVersionInfo.current_version}
-
+
}
)
}
- handleLogout()}>
+ {({ active }) =>
handleLogout()}>
{t('common.userProfile.logout')}
-
+
}
diff --git a/web/app/components/header/account-dropdown/workplace-selector/index.tsx b/web/app/components/header/account-dropdown/workplace-selector/index.tsx
index 801f0b3d52..bcc72a7bb3 100644
--- a/web/app/components/header/account-dropdown/workplace-selector/index.tsx
+++ b/web/app/components/header/account-dropdown/workplace-selector/index.tsx
@@ -9,6 +9,7 @@ import { useWorkspacesContext } from '@/context/workspace-context'
import { ChevronRight } from '@/app/components/base/icons/src/vender/line/arrows'
import { Check } from '@/app/components/base/icons/src/vender/line/general'
import { ToastContext } from '@/app/components/base/toast'
+import classNames from '@/utils/classnames'
const itemClassName = `
flex items-center px-3 py-2 h-10 cursor-pointer
@@ -50,7 +51,7 @@ const WorkplaceSelector = () => {
{currentWorkspace?.name[0].toLocaleUpperCase()}
@@ -70,7 +71,7 @@ const WorkplaceSelector = () => {
className={cn(
`
absolute top-[1px] min-w-[200px] max-h-[70vh] overflow-y-scroll z-10 bg-white border-[0.5px] border-gray-200
- divide-y divide-gray-100 origin-top-right rounded-xl
+ divide-y divide-gray-100 origin-top-right rounded-xl focus:outline-none
`,
s.popup,
)}
@@ -78,11 +79,16 @@ const WorkplaceSelector = () => {
{
workspaces.map(workspace => (
-
handleSwitchWorkspace(workspace.id)}>
-
{workspace.name[0].toLocaleUpperCase()}
-
{workspace.name}
- {workspace.current &&
}
-
+
+ {({ active }) => handleSwitchWorkspace(workspace.id)}>
+
{workspace.name[0].toLocaleUpperCase()}
+
{workspace.name}
+ {workspace.current &&
}
+
}
+
+
))
}
diff --git a/web/app/components/workflow/operator/index.tsx b/web/app/components/workflow/operator/index.tsx
index 80c2bb5306..1ee5fef337 100644
--- a/web/app/components/workflow/operator/index.tsx
+++ b/web/app/components/workflow/operator/index.tsx
@@ -17,9 +17,9 @@ const Operator = ({ handleUndo, handleRedo }: OperatorProps) => {
width: 102,
height: 72,
}}
- maskColor='var(--color-shadow-shadow-5)'
+ maskColor='var(--color-workflow-minimap-bg)'
className='!absolute !left-4 !bottom-14 z-[9] !m-0 !w-[102px] !h-[72px] !border-[0.5px] !border-divider-subtle
- !rounded-lg !shadow-md !shadow-shadow-shadow-5 !bg-workflow-minimap-bg'
+ !rounded-lg !shadow-md !shadow-shadow-shadow-5 !bg-background-default-subtle'
/>