From 74e281125577bdea8817fe0a5d49c71b6ce59d9c Mon Sep 17 00:00:00 2001 From: Dunqing Date: Thu, 13 Apr 2023 14:26:14 +0800 Subject: [PATCH] fix: long text should be line feed (#1686) * fix: long text should be line feed * feat: remove unused styles --- .../client/src/schema-component/antd/input/ReadPretty.tsx | 4 ++-- .../core/client/src/schema-component/antd/markdown/style.less | 3 --- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/input/ReadPretty.tsx b/packages/core/client/src/schema-component/antd/input/ReadPretty.tsx index ab32dfde18..c0a9a54c6f 100644 --- a/packages/core/client/src/schema-component/antd/input/ReadPretty.tsx +++ b/packages/core/client/src/schema-component/antd/input/ReadPretty.tsx @@ -58,7 +58,7 @@ ReadPretty.TextArea = (props) => { value ); return ( -
+
{props.addonBefore} {props.prefix} {content} @@ -94,7 +94,7 @@ ReadPretty.Html = (props) => { ); return ( -
+
{props.addonBefore} {props.prefix} {content} diff --git a/packages/core/client/src/schema-component/antd/markdown/style.less b/packages/core/client/src/schema-component/antd/markdown/style.less index 4ce93dee70..0e6489227d 100644 --- a/packages/core/client/src/schema-component/antd/markdown/style.less +++ b/packages/core/client/src/schema-component/antd/markdown/style.less @@ -1,8 +1,5 @@ .nb-markdown { line-height: 1.612; - a { - word-break: break-all; - } } .nb-markdown > *:last-child {