Skip to content

Commit

Permalink
add tooltip for blazor-ui menu text. (#53)
Browse files Browse the repository at this point in the history
fix #44
  • Loading branch information
StardustDL authored May 30, 2021
1 parent 3bec25d commit 58bbe8e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Modulight.UI.Blazor/Layouts/MainLayout.razor
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@
</MenuItem>
@foreach (var module in UIProvider.GetVisibleClientModules())
{
var moduleTitle = (module.Manifest.DisplayName ?? module.Manifest.Name ?? "");
<MenuItem OnClick="@(()=>OnClickMenuItem(module))">
<AntModuleIcon Module="module"></AntModuleIcon>
<MenuLink Href="@GetRootPath(module)" hidden="@IsCollapsed">@(module?.Manifest.DisplayName ?? module?.Manifest.Name ?? "")</MenuLink>
<Tooltip Title="@moduleTitle">
<AntModuleIcon Module="module"></AntModuleIcon>
<MenuLink Href="@GetRootPath(module)" hidden="@IsCollapsed">@moduleTitle</MenuLink>
</Tooltip>
</MenuItem>
}
</Menu>
Expand Down

0 comments on commit 58bbe8e

Please sign in to comment.