haojianlong пре 4 година
родитељ
комит
d17bfab50d
1 измењених фајлова са 7 додато и 1 уклоњено
  1. 7 1
      src/components/edit/left_toolbar.vue

+ 7 - 1
src/components/edit/left_toolbar.vue

@@ -107,6 +107,7 @@
                     v-for="(items,indexs) in item.GraphElements"
                     :key="indexs"
                     :class="[activeIndexs==indexs &&activeIndex==index ?'active-li':'']"
+                    :title="items.Name"
                   >
                     <img
                       :class="['item',`item-${items.Type}`]"
@@ -641,8 +642,13 @@ export default {
               background: #fff;
             }
             .text {
+              width: 100%;
+              padding: 0 5px;
               font-size: 12px;
-              margin: 0 auto;
+              text-align: center;
+              overflow: hidden;
+              text-overflow:ellipsis;
+              white-space: nowrap;
             }
           }
           .active-li {