fix: fix the menu title

Fix the menu title font size when hover the collapsed menu

Change-Id: I1befdc76351d390e33b8a82e265876a1723e070c
This commit is contained in:
Jingwei.Zhang 2023-05-05 09:55:01 +08:00
parent 5c85078d8d
commit ce254bd808
2 changed files with 3 additions and 1 deletions

View File

@ -160,7 +160,7 @@ export class LayoutMenu extends Component {
const title = ( const title = (
<span> <span>
{item.icon} {item.icon}
<span> <span className={styles['menu-item-title']}>
{item.name.length >= this.maxTitleLength ? ( {item.name.length >= this.maxTitleLength ? (
<Tooltip title={item.name} placement="right"> <Tooltip title={item.name} placement="right">
{item.name} {item.name}

View File

@ -324,6 +324,8 @@
} }
.menu-item-title { .menu-item-title {
font-size: @size-normal;
span { span {
display: inline-block; display: inline-block;
max-width: 140px; max-width: 140px;