浏览代码

样式修改

duy 1 月之前
父节点
当前提交
90b52ebfe4
共有 2 个文件被更改,包括 19 次插入4 次删除
  1. 15 1
      src/views/exctab/exceltab.vue
  2. 4 3
      src/views/manager/projectinfo/list.vue

+ 15 - 1
src/views/exctab/exceltab.vue

@@ -187,7 +187,7 @@
               :key="item.id"
               size="small"
               type="info"
-              class="custom-ellipse-tag1 ellipsis-tag"
+              class="custom-ellipse-tag1 ellipsis-tag4"
             >
               {{ item.projectName }}
             </el-tag>
@@ -698,6 +698,20 @@ handleSort(){
   margin-right: 4px;
 
   
+  .el-tag__content {
+    display: inline-block;
+    max-width: 100%;
+    overflow: hidden;
+    text-overflow: ellipsis;
+    white-space: nowrap;
+  }
+}
+.ellipsis-tag4 {
+
+  overflow: hidden;
+  margin-right: 4px;
+
+  
   .el-tag__content {
     display: inline-block;
     max-width: 100%;

+ 4 - 3
src/views/manager/projectinfo/list.vue

@@ -69,7 +69,7 @@
                         </template>
                           <el-tag type="info"effect="dark" v-else class="custom-ellipse-tag">未关联WBS</el-tag>
                       </div>
-                      <div class="project-like" @click="toggleLike(item)" v-loading="item.load">
+                      <div class="project-like" @click.stop="toggleLike(item)" v-loading="item.load">
                     
                         <i class="ri-heart-fill"  v-if="item.isCollect"    style="color: red;" ></i>
                         <i class="ri-heart-line" v-else></i>
@@ -857,9 +857,9 @@ export default {
   overflow: hidden; /* 确保内部容器不超出卡片 */
 
   .card-content {
-    width: 100%;
+    // width: 100%;
     height: 100%;
-    padding: 15px; /* 保持原卡片内边距 */
+    // padding: 15px; /* 保持原卡片内边距 */
   }
 
   // 其他原有样式保持不变
@@ -1019,6 +1019,7 @@ export default {
    border-radius: 15px !important;
   padding: 8px 8px !important;
   margin-right: 8px !important;
+  margin-bottom: 4px;
   height: 24px;
   line-height: 24px;
   display: inline-flex;