Skip to content

Commit

Permalink
fix: 修复在火狐浏览器中菜单折叠后,文字超出未隐藏的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoxian521 committed May 28, 2024
1 parent cd653c8 commit a8377f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion locales/zh-CN.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ menus:
pureMenu1-2-1: 菜单1-2-1
pureMenu1-2-2: 菜单1-2-2
pureMenu1-3: 菜单1-3
pureMenu2: 菜单2
pureMenu2: 菜单二
purePermission: 权限管理
purePermissionPage: 页面权限
purePermissionButton: 按钮权限
Expand Down
4 changes: 2 additions & 2 deletions src/layout/components/lay-sidebar/components/SidebarItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ function resolvePath(routePath) {
item?.pathList?.length === 2)
"
truncated
class="!w-full !px-4 !text-inherit"
class="!w-full !pl-4 !text-inherit"
>
{{ transformI18n(onlyOneChild.meta.title) }}
</el-text>
Expand Down Expand Up @@ -199,7 +199,7 @@ function resolvePath(routePath) {
:class="{
'!w-full': true,
'!text-inherit': true,
'!px-4':
'!pl-4':
layout !== 'horizontal' &&
isCollapse &&
!toRaw(item.meta.icon) &&
Expand Down

1 comment on commit a8377f8

@xiaoxian521
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before:

6191716869660_ pic

After:

6201716869730_ pic

Please sign in to comment.