mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2025-01-19 00:09:16 +08:00
feat: Break long menu items into multiple lines (#7665)
This commit is contained in:
parent
8922395fdc
commit
8d69da7702
@ -18,6 +18,7 @@
|
||||
:collapse-transition="false"
|
||||
:unique-opened="true"
|
||||
@select="handleMenuClick"
|
||||
class="custom-menu"
|
||||
>
|
||||
<SubItem :menuList="routerMenus" />
|
||||
<el-menu-item :index="''">
|
||||
@ -168,7 +169,7 @@ const search = async () => {
|
||||
rstMenuList.push(menuItem);
|
||||
} else {
|
||||
menuItem.children.forEach((child: any) => {
|
||||
if (child.hidden == undefined || child.hidden == false) {
|
||||
if (!child.hidden) {
|
||||
menuChildren.push(child);
|
||||
}
|
||||
});
|
||||
@ -193,6 +194,13 @@ onMounted(() => {
|
||||
<style lang="scss">
|
||||
@import './index.scss';
|
||||
|
||||
.custom-menu .el-menu-item {
|
||||
white-space: normal !important;
|
||||
word-break: break-word;
|
||||
overflow-wrap: break-word;
|
||||
line-height: normal;
|
||||
}
|
||||
|
||||
.sidebar-container {
|
||||
position: relative;
|
||||
display: flex;
|
||||
|
Loading…
x
Reference in New Issue
Block a user