Skip to content

Commit

Permalink
position copy button and style snackbar
Browse files Browse the repository at this point in the history
  • Loading branch information
lopezi committed Mar 27, 2024
1 parent 24a9b05 commit 2fd74b5
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 11 deletions.
10 changes: 5 additions & 5 deletions src/aoWebWallet/ViewModels/MainViewModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ public partial class MainViewModel : ObservableRecipient
/// <summary>
/// Gets the <see cref="IAsyncRelayCommand{T}"/> responsible for loading the source markdown docs.
/// </summary>
public MainViewModel(DataService dataService,
public MainViewModel(DataService dataService,
TokenClient tokenClient,
StorageService storageService,
ArweaveService arweaveService,
Expand Down Expand Up @@ -123,7 +123,7 @@ public Task LoadTokenTransferList(string address) => TokenTransferList.DataLoade
return TokenTransferList.Data;
});


public Task LoadTokenTransferListForToken(string? tokenId) => TokenTransferList.DataLoader.LoadAsync(async () =>
{
TokenTransferList.Data = new();
Expand Down Expand Up @@ -205,7 +205,7 @@ public Task LoadBalanceDataList(string address) => BalanceDataList.DataLoader.Lo
});



public async Task LoadWalletList()
{
Expand Down Expand Up @@ -333,7 +333,7 @@ private async Task SelectWallet(string? address)
SelectedWallet = current;
var indexOf = all.IndexOf(current);
SelectedWalletIndex = (indexOf % 5) + 1;

}
else
{
Expand Down Expand Up @@ -554,7 +554,7 @@ public async Task CopyToClipboard(string? text)
var isCopied = await clipboard.WriteTextAsync(text.AsMemory());
if (isCopied)
{
snackbar.Add($"Text copied: {text}", Severity.Info);
snackbar.Add("Address copied to clipboard", Severity.Success);
}
}
}
Expand Down
15 changes: 9 additions & 6 deletions src/aoWebWallet/wwwroot/css/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,15 @@ a, .btn-link {
.margin-rewards-button {
margin-top:5px;
}
.copy-clipboard {
position:relative;
margin-left:7px;
top: 5px;
cursor: pointer;
transition: transform .2s;
button.mud-button-root.mud-icon-button.mud-ripple.mud-ripple-icon.copy-clipboard:hover{
background-color: rgba(1,1,1,0);
opacity: 1;
}

button.mud-button-root.mud-icon-button.mud-ripple.mud-ripple-icon.copy-clipboard{
padding:0;
margin-left: 7px;
margin-top: 6px;
opacity: 0.5;
}

Expand Down

0 comments on commit 2fd74b5

Please sign in to comment.