feat(app): adjust sub menu spacing

This commit is contained in:
chenos 2021-01-04 23:26:51 +08:00
parent 1db4fbb8ee
commit 65c7ec9060
2 changed files with 8 additions and 0 deletions

View File

@ -2,6 +2,7 @@ import React from 'react';
import { Layout, Menu, Breadcrumb } from 'antd'; import { Layout, Menu, Breadcrumb } from 'antd';
import { Link, useLocation } from 'umi'; import { Link, useLocation } from 'umi';
import Icon from '@/components/icons'; import Icon from '@/components/icons';
import './style.less';
function pathcamp(path1: string, path2: string) { function pathcamp(path1: string, path2: string) {
if (path1 === path2) { if (path1 === path2) {

View File

@ -0,0 +1,7 @@
.ant-menu-sub.ant-menu-inline > .ant-menu-item,
.ant-menu-sub.ant-menu-inline > .ant-menu-submenu > .ant-menu-submenu-title {
height: 32px;
line-height: 32px;
margin: 4px 0;
font-size: 13px;
}