Skip to content

Commit

Permalink
#252 - Better organize menu items on "md" display.
Browse files Browse the repository at this point in the history
  • Loading branch information
maraf committed Apr 12, 2020
1 parent 3020e8f commit f9b7c9e
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/Money.UI.Blazor/Layouts/MainMenu.razor
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<NavLink class="nav-link" href="@Navigator.UrlAbout()">About</NavLink>
</li>
</ul>
<ul class="nav navbar-nav navbar-right">
<ul class="nav navbar-nav">
<li>
<PwaInstall />
</li>
Expand Down
4 changes: 2 additions & 2 deletions src/Money.UI.Blazor/Layouts/UserInfo.razor
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@if (IsAuthenticated || Loading.IsLoading)
{
<form class="navbar-right" @onsubmit="@OnLogoutAsync">
<ul class="nav navbar-nav navbar-right">
<form class="form-inline" @onsubmit="@OnLogoutAsync">
<ul class="nav navbar-nav">
<Loading Context="@Loading">
<LoadingContent>
<li class="nav-item">
Expand Down
8 changes: 4 additions & 4 deletions src/Money.UI.Blazor/Pages/Categories.razor
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
{
@foreach (var item in Models)
{
<div class="alert" style="background-color: @item.Color.ToHashCode()">
<div class="alert d-flex" style="background-color: @item.Color.ToHashCode()">
@if (item.Icon != null)
{
<span>@item.Icon</span>
<span class="mr-1">@item.Icon</span>
}
<strong>
<strong class="mr-1">
@item.Name
</strong>
<span class="gray">
@item.Description
</span>

<div class="nav navbar-right">
<div class="nav ml-auto">
<IconButton Icon="pen" ToolTip="Rename" Click="@(() => OnActionClick(item, NameModal))" />
<IconButton Icon="image" ToolTip="Icon" Click="@(() => OnActionClick(item, IconModal))" />
<IconButton Icon="tint" ToolTip="Color" Click="@(() => OnActionClick(item, ColorModal))" />
Expand Down
4 changes: 2 additions & 2 deletions src/Money.UI.Blazor/Pages/Currencies.razor
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@
@foreach (var item in Models)
{
<div class="card">
<div class="card-header">
<div class="card-header d-flex">
<strong>
@item.Symbol
</strong>

<div class="nav navbar-right">
<div class="nav ml-auto">
@if (!item.IsDefault)
{
<IconButton Icon="home" ToolTip="Set as default" Click="@(async () => { await OnChangeDefaultClickAsync(item); StateHasChanged(); })" />
Expand Down
2 changes: 1 addition & 1 deletion src/Money.UI.Blazor/wwwroot/css/site.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions src/Money.UI.Blazor/wwwroot/css/site.scss
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,6 @@ h4 {
opacity: 0.7;
}

.navbar-right {
float: right;
}

@media (max-width: 768px) {
.navbar-collapse .navbar-right {
float: none;
}
}

.table {
.btn-link {
padding: 0;
Expand Down

0 comments on commit f9b7c9e

Please sign in to comment.