From ef18e272cf3209edc9b8406c34983044ecc795ca Mon Sep 17 00:00:00 2001 From: Katherine Date: Sun, 2 Mar 2025 21:33:58 +0800 Subject: [PATCH] style: optimize block description style (#6325) --- .../schema-component/antd/block-item/BlockItemCard.tsx | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/block-item/BlockItemCard.tsx b/packages/core/client/src/schema-component/antd/block-item/BlockItemCard.tsx index 0e0735e0f2..e23bfb7b10 100644 --- a/packages/core/client/src/schema-component/antd/block-item/BlockItemCard.tsx +++ b/packages/core/client/src/schema-component/antd/block-item/BlockItemCard.tsx @@ -36,9 +36,8 @@ export const BlockItemCard = React.forwardRef(( return () => clearTimeout(timer); }, [blockTitle, description]); - const title = (blockTitle || description) && ( -
+
{blockTitle} {description && ( (( overflowWrap: 'break-word', whiteSpace: 'normal', fontWeight: 400, - color: '#777', - lineHeight: '1.6', - padding: '4px 12px', - backgroundColor: token.colorFillTertiary, + color: token.colorTextDescription, borderRadius: '4px', }} />