Skip to content

Commit

Permalink
#448 - Shrinking buttons in bottom main menu when screen is too narrow
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed Aug 5, 2024
1 parent 3887ea7 commit dc75abf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Money.Blazor.Host/Layouts/BottomMenu.razor
Original file line number Diff line number Diff line change
Expand Up @@ -80,21 +80,21 @@
{
var isLogout = item.Text == "Logout";
return
@<div class="col-3 d-grid">
@<div class="col-3">
@if (item.Url != null)
{
<Match Url="@item.Url" PageType="@item.PageType" Context="IsActive">
<a href="@item.Url" class="btn @(IsActive ? "btn-primary" : "bg-light-subtle")" @onclick="(() => OnLinkClick(item.IsBlurMenuAfterClick))">
<a href="@item.Url" class="btn @(IsActive ? "btn-primary" : "bg-light-subtle") w-100" @onclick="(() => OnLinkClick(item.IsBlurMenuAfterClick))">
<Icon Identifier="@item.Icon" />
<span class="text d-block">
<span class="text d-block text-truncate">
@item.Text
</span>
</a>
</Match>
}
else
{
<button @onclick="@item.OnClick" class="btn bg-light-subtle @(isLogout ? "text-danger" : string.Empty)">
<button @onclick="@item.OnClick" class="btn bg-light-subtle @(isLogout ? "text-danger" : string.Empty) w-100">
<Icon Identifier="@item.Icon" />
<span class="text d-block">
@item.Text
Expand Down

0 comments on commit dc75abf

Please sign in to comment.