From 4dc370f0dc0efdb9cd4517feadfbc6db18f71dd8 Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Fri, 9 May 2025 15:17:50 +0800 Subject: [PATCH] fix(Action-panel): fix theme style issues (#6842) --- .../src/client/WorkbenchBlock.tsx | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/packages/plugins/@nocobase/plugin-block-workbench/src/client/WorkbenchBlock.tsx b/packages/plugins/@nocobase/plugin-block-workbench/src/client/WorkbenchBlock.tsx index baa60544402..380ae743ca2 100644 --- a/packages/plugins/@nocobase/plugin-block-workbench/src/client/WorkbenchBlock.tsx +++ b/packages/plugins/@nocobase/plugin-block-workbench/src/client/WorkbenchBlock.tsx @@ -20,6 +20,7 @@ import { useDesignable, useOpenModeContext, useSchemaInitializerRender, + useToken, withDynamicSchemaProps, } from '@nocobase/client'; import { Avatar, Space, theme } from 'antd'; @@ -74,13 +75,24 @@ const ResponsiveSpace = () => { const InternalIcons = () => { const fieldSchema = useFieldSchema(); const { layout = WorkbenchLayout.Grid } = fieldSchema.parent['x-component-props'] || {}; + const { token } = useToken(); return (
{layout === WorkbenchLayout.Grid ? ( ) : ( - + {fieldSchema.mapProperties((s, key) => { const icon = s['x-component-props']?.['icon']; const backgroundColor = s['x-component-props']?.['iconColor'];