Skip to content

Commit

Permalink
fix: long text style in sidemenu. fixed #4749 (#4770)
Browse files Browse the repository at this point in the history
  • Loading branch information
mynetfan authored Oct 30, 2024
1 parent c2d59de commit 353e8be
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions packages/@core/ui-kit/menu-ui/src/components/menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -718,6 +718,10 @@ $namespace: vben;
align-items: center;
width: 100%;
height: var(--menu-item-height);
span {
@include menu-title;
}
}
&.is-collapse-show-title {
Expand Down
8 changes: 6 additions & 2 deletions packages/@core/ui-kit/menu-ui/src/sub-menu.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ const hasChildren = computed(() => {
:icon="menu.icon"
:path="menu.path"
>
<template #title>{{ menu.name }}</template>
<template #title>
<span>{{ menu.name }}</span>
</template>
</MenuItem>
<SubMenuComp
v-else
Expand All @@ -59,7 +61,9 @@ const hasChildren = computed(() => {
class="right-6"
/>
</template>
<template #title>{{ menu.name }}</template>
<template #title>
<span>{{ menu.name }}</span>
</template>
<template v-for="childItem in menu.children || []" :key="childItem.path">
<SubMenu :menu="childItem" />
</template>
Expand Down

0 comments on commit 353e8be

Please sign in to comment.