Browse Source

bug修改

dengrui 2 months ago
parent
commit
affd57adbd
1 changed files with 9 additions and 1 deletions
  1. 9 1
      src/views/pro-steps/index.vue

+ 9 - 1
src/views/pro-steps/index.vue

@@ -43,7 +43,14 @@
             <template v-if="taskIndex != null">
             <template v-if="taskIndex != null">
               <div
               <div
                 class="productitleText"
                 class="productitleText"
-                style="font-size: 500; font-size: 24px"
+                style="
+                  font-size: 500;
+                  font-size: 24px;
+                  -webkit-line-clamp: 1;
+                  white-space: nowrap;
+                  overflow: hidden;
+                  text-overflow: ellipsis;
+                "
               >
               >
                 {{ taskArray[taskIndex].materialName }}
                 {{ taskArray[taskIndex].materialName }}
               </div>
               </div>
@@ -54,6 +61,7 @@
                   white-space: nowrap;
                   white-space: nowrap;
                   overflow: hidden;
                   overflow: hidden;
                   text-overflow: ellipsis;
                   text-overflow: ellipsis;
+                  -webkit-line-clamp: 2; /* 限制显示的行数 */
                 "
                 "
               >
               >
                 {{ taskArray[taskIndex].materialModel }}
                 {{ taskArray[taskIndex].materialModel }}