From caa5928ac47234ea2c16e1abcacfb0009aad369b Mon Sep 17 00:00:00 2001 From: HyaCinth <88471803+HyaCiovo@users.noreply.github.com> Date: Thu, 31 Jul 2025 17:43:08 +0800 Subject: [PATCH] chore: Optimize dark mode styles (#23222) (#23231) --- web/app/components/base/emoji-picker/Inner.tsx | 3 ++- web/app/components/plugins/marketplace/empty/index.tsx | 2 +- web/app/components/tools/add-tool-modal/empty.tsx | 4 +++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/web/app/components/base/emoji-picker/Inner.tsx b/web/app/components/base/emoji-picker/Inner.tsx index 6fc4b67181..6c747c1583 100644 --- a/web/app/components/base/emoji-picker/Inner.tsx +++ b/web/app/components/base/emoji-picker/Inner.tsx @@ -149,7 +149,8 @@ const EmojiPickerInner: FC = ({ {/* Color Select */}

Choose Style

- {showStyleColors ? setShowStyleColors(!showStyleColors)} /> : setShowStyleColors(!showStyleColors)} />} + {showStyleColors ? setShowStyleColors(!showStyleColors)} /> + : setShowStyleColors(!showStyleColors)} />}
{showStyleColors &&
{backgroundColors.map((color) => { diff --git a/web/app/components/plugins/marketplace/empty/index.tsx b/web/app/components/plugins/marketplace/empty/index.tsx index 441b1002d0..0306d5003d 100644 --- a/web/app/components/plugins/marketplace/empty/index.tsx +++ b/web/app/components/plugins/marketplace/empty/index.tsx @@ -46,7 +46,7 @@ const Empty = ({ }
- + diff --git a/web/app/components/tools/add-tool-modal/empty.tsx b/web/app/components/tools/add-tool-modal/empty.tsx index 7390249dc1..5759589c8e 100644 --- a/web/app/components/tools/add-tool-modal/empty.tsx +++ b/web/app/components/tools/add-tool-modal/empty.tsx @@ -5,6 +5,7 @@ import { RiArrowRightUpLine } from '@remixicon/react' import Link from 'next/link' import cn from '@/utils/classnames' import { NoToolPlaceholder } from '../../base/icons/src/vender/other' +import useTheme from '@/hooks/use-theme' type Props = { type?: ToolTypeEnum isAgent?: boolean @@ -25,6 +26,7 @@ const Empty = ({ isAgent, }: Props) => { const { t } = useTranslation() + const { theme } = useTheme() const hasLink = type && [ToolTypeEnum.Custom, ToolTypeEnum.MCP].includes(type) const Comp = (hasLink ? Link : 'div') as any @@ -34,7 +36,7 @@ const Empty = ({ return (
- +
{hasTitle ? t(`tools.addToolModal.${renderType}.title`) : 'No tools available'}