Skip to content

Commit

Permalink
improve aos processes display UI
Browse files Browse the repository at this point in the history
  • Loading branch information
lopezi committed Mar 30, 2024
1 parent 6d419f1 commit ef96516
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 21 deletions.
42 changes: 21 additions & 21 deletions src/aoWebWallet/Pages/WalletDetail.razor
Original file line number Diff line number Diff line change
Expand Up @@ -147,18 +147,18 @@

</MudStack>

<MudGrid Spacing="6">
<MudItem xs="12" sm="8">
<MudGrid Spacing="2">
<MudItem xs="12" sm="6">
<DataLoaderProgress DataLoader="BindingContext.TokenTransferList.DataLoader" Title="transactions" />

<MudStack>
@if (BindingContext.TokenTransferList.Data != null)
{
<MudStack Row="true">
<MudStack Row="true" style="display: block !important;">
<MudText Typo="Typo.h5">Transactions</MudText>
<MudSpacer />
<MudTooltip Text="Refresh transactions" Arrow="true" Placement="Placement.Left">
<MudIconButton Icon="@Icons.Material.Filled.Refresh" aria-label="refresh transactions" OnClick="RefreshTransactions"></MudIconButton>
<MudTooltip Text="Refresh transactions" Arrow="true" Placement="Placement.Right">
<MudIconButton Class="ml-6" Icon="@Icons.Material.Filled.Refresh" aria-label="refresh transactions" OnClick="RefreshTransactions"></MudIconButton>
</MudTooltip>
</MudStack>

Expand All @@ -168,40 +168,40 @@
<TransactionComponent transfer="transfer" SelectedAddress="@BindingContext.SelectedAddress" />
}
</MudTimeline>

}

</MudStack>
</MudItem>

@if (BindingContext.SelectedProcessData?.Data?.Processes.Any() ?? false)
{
<MudItem xs12 sm="4">
<MudStack>

<MudItem xs="12" sm="6">
<MudStack

Check failure on line 178 in src/aoWebWallet/Pages/WalletDetail.razor

View workflow job for this annotation

GitHub Actions / build

End of file or an unexpected character was reached before the "MudStack" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("<br />") or have matching end tags ("<p>Hello</p>"). If you intended to display a "<" character, use the "&lt;" HTML entity.

Check failure on line 178 in src/aoWebWallet/Pages/WalletDetail.razor

View workflow job for this annotation

GitHub Actions / build

Missing close angle for tag helper 'MudStack'.

Check failure on line 178 in src/aoWebWallet/Pages/WalletDetail.razor

View workflow job for this annotation

GitHub Actions / build

End of file or an unexpected character was reached before the "MudStack" tag could be parsed. Elements inside markup blocks must be complete. They must either be self-closing ("<br />") or have matching end tags ("<p>Hello</p>"). If you intended to display a "<" character, use the "&lt;" HTML entity.

Check failure on line 178 in src/aoWebWallet/Pages/WalletDetail.razor

View workflow job for this annotation

GitHub Actions / build

Missing close angle for tag helper 'MudStack'.
<MudText Typo="Typo.h5">AOS</MudText>
<MudText Typo="Typo.subtitle1">List of owned AOS processes</MudText>


<MudTimeline TimelinePosition="TimelinePosition.Left">
@foreach (var process in BindingContext.SelectedProcessData.Data.Processes)
{
var linkUrl = $"/wallet/{process.Id}";
<MudStack Row=true>
<MudText>@process.Name</MudText>
<MudSpacer />
<MudLink Href="@linkUrl">@process.Id.ToShortAddress()</MudLink>
</MudStack>
<MudTimelineItem>
<ItemDot>
<MudAvatar Color="Color.Secondary" Variant="Variant.Outlined">
<MudImage title="AO Process" class="aos-process" Src="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMTEuOTciIHZpZXdCb3g9IjAgMCA0MjkgMjE0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8cGF0aCBkPSJNMCAyMTRINzEuMzc2M0w4NS45NDI5IDE3NC42MUw1My4xNjgxIDEwNy41TDAgMjE0WiIgZmlsbD0iYmxhY2siLz4KPHBhdGggZD0iTTE4OS4zNjYgMTYwLjc1TDEwOS45NzggMUw4NS45NDI5IDU1LjcwODlMMTYwLjk2MSAyMTRIMjE1TDE4OS4zNjYgMTYwLjc1WiIgZmlsbD0iYmxhY2siLz4KPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0zMjIgMjE0QzM4MS4wOTQgMjE0IDQyOSAxNjYuMDk0IDQyOSAxMDdDNDI5IDQ3LjkwNTUgMzgxLjA5NCAwIDMyMiAwQzI2Mi45MDYgMCAyMTUgNDcuOTA1NSAyMTUgMTA3QzIxNSAxNjYuMDk0IDI2Mi45MDYgMjE0IDMyMiAyMTRaTTMyMiAxNzJDMzU3Ljg5OSAxNzIgMzg3IDE0Mi44OTkgMzg3IDEwN0MzODcgNzEuMTAxNSAzNTcuODk5IDQyIDMyMiA0MkMyODYuMTAxIDQyIDI1NyA3MS4xMDE1IDI1NyAxMDdDMjU3IDE0Mi44OTkgMjg2LjEwMSAxNzIgMzIyIDE3MloiIGZpbGw9ImJsYWNrIi8+Cjwvc3ZnPg==" Elevation="25" />
</MudAvatar>
</ItemDot>
<ItemContent>
<MudStack Row=true>
<MudText>@process.Name</MudText>
<MudSpacer /><br />
<MudLink Href="@linkUrl">@process.Id.ToShortAddress()</MudLink>
</MudStack>
</ItemContent>
</MudTimelineItem>
}
</MudTimeline>


</MudStack>
</MudItem>
}

</MudGrid>

</MudContainer>


Expand Down
10 changes: 10 additions & 0 deletions src/aoWebWallet/wwwroot/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,14 @@ button.mud-button-root.mud-icon-button.mud-ripple.mud-ripple-icon.copy-clipboard
display: block;
}

.mud-avatar>.mud-image.aos-process {
width: 40%;
height: 20%;
}

.mud-avatar.mud-avatar-medium {
width: 35px !important;
height: 35px !important;
}


0 comments on commit ef96516

Please sign in to comment.