Limit number of displayed labels and show tooltip
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItemViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItemViewModel.cs
using System;
+using System.Collections.Generic;
+using System.Linq;
using System.Reactive;
using System.Windows.Input;
using NBitcoin;
@@ -36,7 +38,8 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.History
IncomingAmount = amount;
}
- Label = transactionSummary.Label;
+ Label = transactionSummary.Label.ToList();
+ FilteredLabel = Label.Count > 3 ? Label.Take(3).Append("...").ToList() : Label.ToList();
ShowDetailsCommand = ReactiveCommand.Create(() => RoutableViewModel.Navigate(NavigationTarget.DialogScreen).To(new TransactionDetailsViewModel(transactionSummary, wallet, updateTrigger)));
}
@@ -57,7 +60,9 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.History
public Money? OutgoingAmount { get; }
- public SmartLabel Label { get; }
+ public List<string> FilteredLabel { get; }
+
+ public List<string> Label { get; }
public bool IsCoinJoin { get; }

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/History/HistoryTable.axaml
WalletWasabi.Fluent/Views/Wallets/Home/History/HistoryTable.axaml
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<DockPanel LastChildFill="True" x:DataType="history:HistoryItemViewModel">
+ <ToolTip.Tip>
+ <c:TagsBox IsReadOnly="True"
+ Items="{Binding Label}" />
+ </ToolTip.Tip>
<c:TagsBox Padding="0" IsReadOnly="True"
- Items="{Binding Label}"
+ Items="{Binding FilteredLabel}"
VerticalAlignment="Center" />
</DockPanel>
</DataTemplate>

Limit number of displayed labels and show tooltip