diff --git a/src/layout/components/sidebar/sidebarItem.vue b/src/layout/components/sidebar/sidebarItem.vue index 8aa67d777..f9d16018a 100644 --- a/src/layout/components/sidebar/sidebarItem.vue +++ b/src/layout/components/sidebar/sidebarItem.vue @@ -145,7 +145,7 @@ function resolvePath(routePath) { props.item?.pathList?.length === 2) " truncated - class="!px-4 !text-inherit" + class="!w-full !px-4 !text-inherit" > {{ transformI18n(onlyOneChild.meta.title) }} @@ -157,7 +157,7 @@ function resolvePath(routePath) { offset: [0, -10], theme: tooltipEffect }" - class="!text-inherit" + class="!w-full !text-inherit" > {{ transformI18n(onlyOneChild.meta.title) }} @@ -185,18 +185,21 @@ function resolvePath(routePath) {