Browse Source

侧边栏溢出隐藏

Q-ABAB 2 years ago
parent
commit
37df7b4a75
1 changed files with 6 additions and 2 deletions
  1. 6 2
      src/views/home.vue

+ 6 - 2
src/views/home.vue

@@ -81,10 +81,14 @@
                 cursor: pointer;
                 cursor: pointer;
                 box-sizing: border-box;
                 box-sizing: border-box;
                 padding-left: 20%;
                 padding-left: 20%;
+                
+
                 span{
                 span{
-                  display: flex;
-                  // background: red;
                   align-items: center;
                   align-items: center;
+                  width: 80%;
+                  white-space: nowrap;
+                  overflow: hidden;
+                  text-overflow:ellipsis;
                   i{
                   i{
                     position: relative;
                     position: relative;
                     top: 1px;
                     top: 1px;