Ver Fonte

全局搜索优化

Hwf há 9 meses atrás
pai
commit
a6fc7039be
1 ficheiros alterados com 6 adições e 3 exclusões
  1. 6 3
      src/views/globalMap/LeftMenu.vue

+ 6 - 3
src/views/globalMap/LeftMenu.vue

@@ -403,9 +403,12 @@ defineExpose({ setMenuChange });
         .text1 {
           margin-left: 5px;
           font-size: 14px;
-          //overflow: hidden;
-          //text-overflow: ellipsis;
-          //white-space: nowrap;
+          display: -webkit-box;
+          -webkit-box-orient: vertical;
+          -webkit-line-clamp: 2;
+          overflow: hidden;
+          text-overflow: ellipsis;
+          white-space: normal; /* 或者使用 nowrap,取决于你的布局需求 */
         }
       }
       .list-item2 {