소스 검색

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;
   }