瀏覽代碼

2023-9-18

codeMan 2 年之前
父節點
當前提交
71740ead8a
共有 1 個文件被更改,包括 5 次插入2 次删除
  1. 5 2
      src/components/file-block/index.vue

+ 5 - 2
src/components/file-block/index.vue

@@ -125,10 +125,13 @@ export default {
   font-weight: bold;
   color: #333333;
   line-height: 22px;
+  display: -webkit-box;
   overflow: hidden;
+  -webkit-box-orient: vertical;
+  -webkit-line-clamp: 2;
   text-overflow: ellipsis;
-  white-space: nowrap;
-  max-width: 220px;
+  word-wrap:break-word;
+  width: 220px;
 }
 .item-file .left .text p:last-child {
   font-size: 10px;