Skip to content

Commit

Permalink
#417 0 Hide "templates" text in menu on large screens.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed Jun 22, 2022
1 parent fff139e commit 27e0b84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/Money.Blazor.Host/Layouts/MainMenu.razor
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,11 @@
<Icon Identifier="pound-sign" />
Currencies
</MainMenuLink>
<MainMenuLink Href="@Navigator.UrlExpenseTemplates()">
<MainMenuLink Href="@Navigator.UrlExpenseTemplates()" Title="Templates">
<Icon Identifier="redo" />
Templates
<span class="d-inline d-lg-none">
Templates
</span>
</MainMenuLink>
<MainMenuSeparator />
<li class="nav-item">
Expand Down
5 changes: 4 additions & 1 deletion src/Money.Blazor.Host/Layouts/MainMenuLink.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Match Url="@Href" Mode="@HrefMatch" PageType="@PageType" Context="IsActive">
<li class="nav-item">
<a href="@Href" class="nav-link @(IsActive ? "active" : "")">
<a href="@Href" class="nav-link @(IsActive ? "active" : "")" title="@Title">
@ChildContent
</a>
</li>
Expand All @@ -11,6 +11,9 @@
[Parameter]
public string Href { get; set; }

[Parameter]
public string Title { get; set; }

[Parameter]
public MatchMode HrefMatch { get; set; } = MatchMode.Exact;

Expand Down

0 comments on commit 27e0b84

Please sign in to comment.