소스 검색

超过页面

Hugvvn 1 개월 전
부모
커밋
7a6d9c718c
1개의 변경된 파일6개의 추가작업 그리고 2개의 파일을 삭제
  1. 6 2
      src/components/ResultCard.vue

+ 6 - 2
src/components/ResultCard.vue

@@ -214,8 +214,12 @@ function truncateText(html: string, maxLength: number): string {
   font-size: 12px;
   border-radius: 2px;
   height: auto;
-  word-break: break-word;
-  overflow-wrap: break-word;
+  word-break: break-all;
+  overflow-wrap: anywhere;
+  white-space: normal;
+  min-width: 0;
+  max-width: 100%;
+  line-height: 1.5;
 }
 .result-actions {
   display: flex;