wip: 临时提交

This commit is contained in:
Ray.Hao
2025-05-27 08:10:36 +08:00
parent 5e7cb0ad1c
commit a193965dfe
2 changed files with 1 additions and 59 deletions

View File

@@ -139,16 +139,6 @@ console.log("🎨 MixLayout rendered");
width: $sidebar-width; // 默认宽度显示logo+文字
height: 100%;
// 中屏设备优化800px-1100px适度缩小但保持显示文字
@media (min-width: 768px) and (max-width: 1100px) {
width: 180px; // 缩小到180px为菜单腾出空间
}
// 小屏设备只显示logo使用收缩宽度
@media (max-width: 767px) {
width: $sidebar-width-collapsed; // 只显示logo54px
}
:deep(.logo) {
height: 100%;

View File

@@ -59,7 +59,6 @@ const isLogoCollapsed = computed(() => width.value < 768);
width: 100%;
height: $navbar-height;
background-color: $menu-background;
box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
&-left {
display: flex;
@@ -74,24 +73,10 @@ const isLogoCollapsed = computed(() => width.value < 768);
flex-shrink: 0; // 防止Logo被压缩
width: $sidebar-width; // 默认宽度显示logo+文字
height: $navbar-height;
padding: 0;
margin-right: 20px;
background: transparent;
// 中屏设备优化800px-1100px适度缩小但保持显示文字
@media (min-width: 768px) and (max-width: 1100px) {
width: 180px; // 缩小到180px为菜单腾出空间
margin-right: 16px; // 减少右边距
}
// 小屏设备只显示logo使用收缩宽度
@media (max-width: 767px) {
@media (max-width: 768px) {
width: $sidebar-width-collapsed; // 只显示logo54px
margin-right: 12px; // 减少右边距
}
a {
height: 100%;
}
}
}
@@ -134,23 +119,8 @@ const isLogoCollapsed = computed(() => width.value < 768);
.el-sub-menu__title {
height: $navbar-height;
line-height: $navbar-height;
@media (min-width: 768px) and (max-width: 1200px) {
padding: 0 12px;
font-size: 14px;
}
@media (max-width: 767px) {
padding: 0 8px;
font-size: 13px;
}
}
}
// 修复子菜单弹出位置
.el-menu--popup {
min-width: 160px;
}
}
}
@@ -166,22 +136,4 @@ const isLogoCollapsed = computed(() => width.value < 768);
height: calc(100vh - $navbar-height - $tags-view-height) !important;
}
}
// 中屏设备的特殊优化
@media (min-width: 768px) and (max-width: 1200px) {
.layout {
&__header {
padding: 0 8px; // 添加少量内边距
}
}
}
// 小屏设备的特殊优化
@media (max-width: 767px) {
.layout {
&__header {
padding: 0 4px;
}
}
}
</style>