style(App): 优化导航折叠组件的边框样式

- 移除了多余的左右边框样式设置
- 将边框重置方式从 border: none 改为 border-style: none
- 修正了 border-block 属性值,从 0px 改为 0
This commit is contained in:
雨霖铃
2026-01-07 23:15:10 +08:00
parent 2017dfddfa
commit cdd197bff5
+3 -4
View File
@@ -169,8 +169,6 @@
right: 0; right: 0;
margin-top: 0; margin-top: 0;
border-radius: 8px; border-radius: 8px;
border-left: none;
border-right: none;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
max-height: 0; max-height: 0;
overflow: hidden; overflow: hidden;
@@ -179,7 +177,8 @@
visibility: visible; /* 覆盖默认的visibility: hidden */ visibility: visible; /* 覆盖默认的visibility: hidden */
transform: none; /* 覆盖默认的transform */ transform: none; /* 覆盖默认的transform */
display: block; /* 覆盖默认的display: none,使用block而不是flex */ display: block; /* 覆盖默认的display: none,使用block而不是flex */
border: none; /* 移除边框,避免横线显示 */ /* 移除边框,避免横线显示 */
border-style: none;
} }
.nav-collapse-content.show { .nav-collapse-content.show {
@@ -244,7 +243,7 @@
max-height: 0; max-height: 0;
overflow: hidden; overflow: hidden;
transition: max-height 0.3s ease; transition: max-height 0.3s ease;
border-block: 0px; border-block: 0;
} }
.nav-collapse-content.show { .nav-collapse-content.show {