Skip to content

Commit

Permalink
mobile optimisations and consistency.
Browse files Browse the repository at this point in the history
  • Loading branch information
lopezi committed May 30, 2024
1 parent b9b76b3 commit 4b1ed15
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 6 deletions.
8 changes: 7 additions & 1 deletion src/aoWebWallet/Pages/ActionPage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


<MudContainer Class="mt-2 px-8" MaxWidth="MaxWidth.False">
<MudText Typo="Typo.h5">New transaction</MudText>
<MudBreadcrumbs Class="breadcrumbs-aoww mb-4" Items="_items"></MudBreadcrumbs>

<MudStack>
@if (BindingContext.WalletList.Data != null)
Expand Down Expand Up @@ -119,6 +119,12 @@
private bool readOnly = false;
private bool started = false;

private List<BreadcrumbItem> _items = new List<BreadcrumbItem>
{
new BreadcrumbItem("Home", href: "/"),
new BreadcrumbItem("New transaction", href: null, disabled: true)
};


private async void Preview()

Check warning on line 129 in src/aoWebWallet/Pages/ActionPage.razor

View workflow job for this annotation

GitHub Actions / build

This async method lacks 'await' operators and will run synchronously. Consider using the 'await' operator to await non-blocking API calls, or 'await Task.Run(...)' to do CPU-bound work on a background thread.
{
Expand Down
8 changes: 6 additions & 2 deletions src/aoWebWallet/Pages/ReceivePage.razor
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,8 @@

<PageTitle>Receive Tokens - @Program.PageTitlePostFix</PageTitle>


<MudContainer Class="mt-2 px-8" MaxWidth="MaxWidth.False">
<MudText Typo="Typo.h5">Receive Tokens</MudText>
<MudBreadcrumbs Class="breadcrumbs-aoww mb-4" Items="_items"></MudBreadcrumbs>

<MudGrid>
<MudItem xs="12" md="3">
Expand Down Expand Up @@ -132,6 +131,11 @@
</MudContainer>

@code {
private List<BreadcrumbItem> _items = new List<BreadcrumbItem>
{
new BreadcrumbItem("Home", href: "/"),
new BreadcrumbItem("Receive tokens", href: null, disabled: true)
};

[Parameter]
public string? Address { get; set; }
Expand Down
2 changes: 1 addition & 1 deletion src/aoWebWallet/Shared/ActionEditor.razor
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@using aoWebWallet.Models

<MudItem>
<MudChip>Target</MudChip> <MudChip Style="border-radius:0; margin-top:0;" Variant="Variant.Text" Color="Color.Primary">@AoAction.Target?.Value</MudChip>
<MudChip>Target</MudChip> <MudChip Style="border-radius:0; margin-top:0;" Class="KodeMono tx-wrap" Variant="Variant.Text" Color="Color.Primary">@AoAction.Target?.Value</MudChip>
</MudItem>

<MudStack>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ else
</MudText>
</ItemSelectedTemplate>
</MudAutocomplete>
<MudChip Style="border-radius:0; margin-top:0;" Variant="Variant.Text" Color="Color.Primary">@(ActionParam.Value ?? "Not selected")</MudChip>
<MudChip Style="border-radius:0; margin-top:0;" Class="KodeMono tx-wrap" Variant="Variant.Text" Color="Color.Primary">@(ActionParam.Value ?? "Not selected")</MudChip>

@* <MudTextField @ref="mudProcessField" T="string" MaxLength=43 Label="@ActionParam.Key" Validation="@(new Func<string, IEnumerable<string>>(ValidateProcess))" Variant="Variant.Text" ValueChanged="UpdateStringValue" /> *@
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

if (ActionParam.ParamType == ActionParamType.Balance)
{
<MudChip style="border-radius:0;" Variant="Variant.Text" Color="Color.Success">Balance available: @BalanceHelper.FormatBalance(BalanceData?.Balance, Token?.TokenData?.Denomination ?? 1) @Token?.TokenData?.Ticker</MudChip>
<MudChip style="border-radius:0;" Variant="Variant.Text" Color="Color.Success">Balance available: <br/> @BalanceHelper.FormatBalance(BalanceData?.Balance, Token?.TokenData?.Denomination ?? 1) @Token?.TokenData?.Ticker</MudChip>
}
}
}
Expand Down

0 comments on commit 4b1ed15

Please sign in to comment.