fix: long text should be line feed (#1686)

* fix: long text should be line feed

* feat: remove unused styles
This commit is contained in:
Dunqing 2023-04-13 14:26:14 +08:00 committed by GitHub
parent ca88638edf
commit 74e2811255
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -58,7 +58,7 @@ ReadPretty.TextArea = (props) => {
value value
); );
return ( return (
<div className={cls(prefixCls, props.className)} style={props.style}> <div className={cls(prefixCls, props.className)} style={{ overflowWrap: 'break-word', ...props.style }}>
{props.addonBefore} {props.addonBefore}
{props.prefix} {props.prefix}
{content} {content}
@ -94,7 +94,7 @@ ReadPretty.Html = (props) => {
</EllipsisWithTooltip> </EllipsisWithTooltip>
); );
return ( return (
<div className={cls(prefixCls, props.className)} style={props.style}> <div className={cls(prefixCls, props.className)} style={{ overflowWrap: 'break-word', ...props.style }}>
{props.addonBefore} {props.addonBefore}
{props.prefix} {props.prefix}
{content} {content}

View File

@ -1,8 +1,5 @@
.nb-markdown { .nb-markdown {
line-height: 1.612; line-height: 1.612;
a {
word-break: break-all;
}
} }
.nb-markdown > *:last-child { .nb-markdown > *:last-child {