浏览代码

text word break

bianjiang 1 年之前
父节点
当前提交
266950eb86
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      src/modules/editor/components/CompUI/basicUI/Text/component.tsx

+ 2 - 0
src/modules/editor/components/CompUI/basicUI/Text/component.tsx

@@ -223,12 +223,14 @@ const EditorComp = defineComponent({
 
 const readOnlyText = css`
   pointer-events: none;
+  word-break: break-all;
 `;
 
 const textStyle = css`
   font-size: 12px;
   width: 100%;
   color: #666;
+  word-break: break-all;
   p {
     margin: 0;
   }