fix(ui): 侧边栏菜单 el-icon 与 fa 图标对齐(font-size/间距)
- el-menu-item/el-sub-menu__title 内 el-icon 统一 18px + margin-right 5px,与 .gerp-menu-icon(fa)一致,折叠态均去 margin
This commit is contained in:
1 parent
f32ce1ff03
commit
9a8cbb1c25
1 file changed
+11
@@ -753,6 +753,17 @@ const isFaIcon = (icon: string | undefined | null): boolean => {
|
||||
:deep(.el-menu--collapse) .gerp-menu-icon {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
// el-icon 菜单图标与 fa 对齐(font-size 与右间距一致,避免混排错位)
|
||||
:deep(.el-menu-item > .el-icon),
|
||||
:deep(.el-sub-menu__title > .el-icon) {
|
||||
font-size: 18px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
:deep(.el-menu--collapse .el-menu-item > .el-icon),
|
||||
:deep(.el-menu--collapse .el-sub-menu__title > .el-icon) {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
// 侧边栏底部(版本号 + 菜单刷新 + 设置)
|
||||
|
||||
Reference in new issue
Block a user