mirror of
https://github.com/nocobase/nocobase
synced 2024-11-15 06:35:20 +00:00
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
|
||||
);
|
||||
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.prefix}
|
||||
{content}
|
||||
@ -94,7 +94,7 @@ ReadPretty.Html = (props) => {
|
||||
</EllipsisWithTooltip>
|
||||
);
|
||||
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.prefix}
|
||||
{content}
|
||||
|
@ -1,8 +1,5 @@
|
||||
.nb-markdown {
|
||||
line-height: 1.612;
|
||||
a {
|
||||
word-break: break-all;
|
||||
}
|
||||
}
|
||||
|
||||
.nb-markdown > *:last-child {
|
||||
|
Loading…
Reference in New Issue
Block a user