fix(ui): 菜单 fa 图标宽度改用 --el-menu-icon-width
- .gerp-menu-icon 宽度 1em→var(--el-menu-icon-width,24px),与 EP el-icon 菜单图标盒宽一致,左间距/文字起点统一
This commit is contained in:
1 parent
9a8cbb1c25
commit
c085594f51
1 file changed
+2
-1
@@ -740,7 +740,8 @@ const isFaIcon = (icon: string | undefined | null): boolean => {
|
||||
// FontAwesome 图标对齐 el-icon 表现(菜单 Icon 字段可能存 FA 类名)
|
||||
:deep(.gerp-menu-icon) {
|
||||
display: inline-block;
|
||||
width: 1em;
|
||||
// 宽度对齐 EP 菜单图标(--el-menu-icon-width),避免混排时文字左起点不一致
|
||||
width: var(--el-menu-icon-width, 24px);
|
||||
margin-right: 5px;
|
||||
font-size: 18px;
|
||||
text-align: center;
|
||||
|
||||
Reference in new issue
Block a user