fix: In order to better control the display of the menu item name
Control the length from `>15` to `>=14` to show tooltip Change-Id: I4fef4774a4b86bd261122bb93bab6d9e98984e92
This commit is contained in:
parent
73929c7978
commit
4e7268bdfb
@ -110,7 +110,7 @@ export class LayoutMenu extends Component {
|
||||
{item.icon}
|
||||
<span>
|
||||
<Link key={item.key} to={item.path}>
|
||||
{item.name.length > 15 ? (
|
||||
{item.name.length >= 14 ? (
|
||||
<Tooltip title={item.name} placement="right">
|
||||
{item.name}
|
||||
</Tooltip>
|
||||
@ -126,7 +126,7 @@ export class LayoutMenu extends Component {
|
||||
<span>
|
||||
{item.icon}
|
||||
<span>
|
||||
{item.name.length > 15 ? (
|
||||
{item.name.length >= 14 ? (
|
||||
<Tooltip title={item.name} placement="right">
|
||||
{item.name}
|
||||
</Tooltip>
|
||||
|
Loading…
Reference in New Issue
Block a user