bill 1 year ago
parent
commit
3a37d358c5
2 changed files with 3 additions and 6 deletions
  1. 0 4
      src/components/list/index.vue
  2. 3 2
      src/layout/scene-list/index.vue

+ 0 - 4
src/components/list/index.vue

@@ -60,10 +60,6 @@ defineEmits<{ (e: 'changeSelect', item: Item): void }>()
       padding: 20px 0;
       border-bottom: 1px solid rgba(255,255,255,0.16);
       
-      p {
-        word-break: keep-all;
-        line-height: 1.5em;
-      }
     }
   }
 }

+ 3 - 2
src/layout/scene-list/index.vue

@@ -90,8 +90,9 @@ const stopWatch = watch(list, () => {
   p {
     height: 1.5em;
     overflow: hidden;
-    word-break: break-all;
-    text-overflow: ellipsis
+    text-overflow: ellipsis;
+    word-break: keep-all;
+    line-height: 1.5em;
   }
 }