From 65c7ec9060221ac1235023a507cbc9aa94b44d64 Mon Sep 17 00:00:00 2001 From: chenos Date: Mon, 4 Jan 2021 23:26:51 +0800 Subject: [PATCH] feat(app): adjust sub menu spacing --- packages/app/src/components/menu/index.tsx | 1 + packages/app/src/components/menu/style.less | 7 +++++++ 2 files changed, 8 insertions(+) create mode 100644 packages/app/src/components/menu/style.less diff --git a/packages/app/src/components/menu/index.tsx b/packages/app/src/components/menu/index.tsx index 464b118314..ba3026ebdd 100644 --- a/packages/app/src/components/menu/index.tsx +++ b/packages/app/src/components/menu/index.tsx @@ -2,6 +2,7 @@ import React from 'react'; import { Layout, Menu, Breadcrumb } from 'antd'; import { Link, useLocation } from 'umi'; import Icon from '@/components/icons'; +import './style.less'; function pathcamp(path1: string, path2: string) { if (path1 === path2) { diff --git a/packages/app/src/components/menu/style.less b/packages/app/src/components/menu/style.less new file mode 100644 index 0000000000..11c4cb849e --- /dev/null +++ b/packages/app/src/components/menu/style.less @@ -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; +} \ No newline at end of file