fix: long text should be line feed (#1686)
* fix: long text should be line feed * feat: remove unused styles
This commit is contained in:
parent
ca88638edf
commit
74e2811255
@ -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}
|
||||||
|
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user