From b2639577f119115edb1bb5a67f3d137ddb3be6c6 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期二, 18 三月 2025 14:56:31 +0800
Subject: [PATCH] 1.成品下单-退回可以重新提交 2.侧边栏样式修改

---
 src/assets/styles/sidebar.scss |   50 ++++++++++++++++++++------------------------------
 1 files changed, 20 insertions(+), 30 deletions(-)

diff --git a/src/assets/styles/sidebar.scss b/src/assets/styles/sidebar.scss
index 0f43008..1b8d070 100644
--- a/src/assets/styles/sidebar.scss
+++ b/src/assets/styles/sidebar.scss
@@ -71,27 +71,9 @@
     }
 
     .el-menu-item, .el-submenu__title {
-      display: flex;
-      align-items: center;
-    }
-    .el-submenu__title span {
-      white-space: normal;
-      word-break: break-all;
-      line-height: 20px;
-      flex: 1;
-      padding-right: 20px;
-    }
-
-    .el-menu-item {
-      display: flex;
-      align-items: center;
-      padding-right: 20px !important;
-    }
-    .el-menu-item span {
-      white-space: normal;
-      word-break: break-all;
-      line-height: 20px;
-      flex: 1;
+      overflow: hidden !important;
+      text-overflow: ellipsis !important;
+      white-space: nowrap !important;
     }
 
     // menu hover
@@ -127,11 +109,11 @@
 
   .hideSidebar {
     .sidebar-container {
-      width: 54px !important;
+      width: 70px !important;
     }
 
     .main-container {
-      margin-left: 54px;
+      margin-left: 70px;
     }
 
     .submenu-title-noDropdown {
@@ -142,7 +124,9 @@
         padding: 0 !important;
 
         .svg-icon {
-          margin-left: 20px;
+          width: 1.5em;
+          height: 1.5em;
+          margin-left: 25px;
         }
       }
     }
@@ -154,7 +138,9 @@
         padding: 0 !important;
 
         .svg-icon {
-          margin-left: 20px;
+          width: 1.5em;
+          height: 1.5em;
+          margin-left: 25px;
         }
 
       }
@@ -163,12 +149,16 @@
     .el-menu--collapse {
       .el-submenu {
         &>.el-submenu__title {
+          height: auto; /* 鏍规嵁鍐呭鑷姩璋冩暣楂樺害 */
+          flex-direction: column; /* 鏀瑰彉甯冨眬鏂瑰悜涓哄瀭鐩� */
+          align-items: center; /* 灞呬腑瀵归綈 */
+          margin-bottom: 10px;
           &>span {
-            height: 0;
-            width: 0;
-            overflow: hidden;
-            visibility: hidden;
-            display: inline-block;
+            display: block !important;
+            visibility: visible !important;
+            white-space: normal; /* 鍏佽鎹㈣ */
+            text-align: center; /* 鏂囨湰灞呬腑瀵归綈 */
+            line-height: normal;
           }
         }
       }

--
Gitblit v1.9.3