mirror of
https://github.com/apache/superset.git
synced 2026-05-12 19:35:17 +00:00
fix(RightMenu): fix inconsistent icon alignment in RightMenu items (#36532)
This commit is contained in:
@@ -394,14 +394,13 @@ const RightMenu = ({
|
||||
items.push({
|
||||
key: menu.label,
|
||||
label: isFrontendRoute(menu.url) ? (
|
||||
<Link to={menu.url || ''}>
|
||||
{menu.icon} {menu.label}
|
||||
</Link>
|
||||
<Link to={menu.url || ''}>{menu.label}</Link>
|
||||
) : (
|
||||
<Typography.Link href={ensureAppRoot(menu.url || '')}>
|
||||
{menu.icon} {menu.label}
|
||||
{menu.label}
|
||||
</Typography.Link>
|
||||
),
|
||||
icon: menu.icon,
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -411,14 +410,13 @@ const RightMenu = ({
|
||||
items.push({
|
||||
key: menu.label,
|
||||
label: isFrontendRoute(menu.url) ? (
|
||||
<Link to={menu.url || ''}>
|
||||
{menu.icon} {menu.label}
|
||||
</Link>
|
||||
<Link to={menu.url || ''}>{menu.label}</Link>
|
||||
) : (
|
||||
<Typography.Link href={ensureAppRoot(menu.url || '')}>
|
||||
{menu.icon} {menu.label}
|
||||
{menu.label}
|
||||
</Typography.Link>
|
||||
),
|
||||
icon: menu.icon,
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user