Show only first label and flyout for the rest of the labels
MODIFY
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItemViewModel.cs
WalletWasabi.Fluent/ViewModels/Wallets/Home/History/HistoryItemViewModel.cs
@@ -38,8 +38,8 @@ namespace WalletWasabi.Fluent.ViewModels.Wallets.Home.History
IncomingAmount = amount;
}
- Label = transactionSummary.Label.ToList();
- FilteredLabel = Label.Count > 3 ? Label.Take(3).Append("...").ToList() : Label.ToList();
+ Label = transactionSummary.Label.Take(1).ToList();
+ FilteredLabel = transactionSummary.Label.Skip(1).ToList();
ShowDetailsCommand = ReactiveCommand.Create(() => RoutableViewModel.Navigate(NavigationTarget.DialogScreen).To(new TransactionDetailsViewModel(transactionSummary, wallet, updateTrigger)));
}

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/History/HistoryTable.axaml
WalletWasabi.Fluent/Views/Wallets/Home/History/HistoryTable.axaml
SortMemberPath="Label">
<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 FilteredLabel}"
+ <DockPanel x:DataType="history:HistoryItemViewModel">
+ <DockPanel.Styles>
+ <Style Selector="Button.labelFlyout /template/ ContentPresenter">
+ <Setter Property="VerticalAlignment" Value="Stretch" />
+ <Setter Property="HorizontalAlignment" Value="Center" />
+ <Setter Property="Cursor" Value="Hand" />
+ <Setter Property="BorderThickness" Value="1" />
+ <Setter Property="Padding" Value="12,6,12,6" />
+ <Setter Property="MinHeight" Value="{DynamicResource TextControlThemeMinHeight}" />
+ <Setter Property="BorderBrush" Value="{StaticResource TagsBoxControlForeground}" />
+ <Setter Property="Background" Value="{DynamicResource InvisibleButtonBackgroundColor}" />
+ </Style>
+ <Style Selector="Button.labelFlyout:pointerover /template/ ContentPresenter">
+ <Setter Property="BorderBrush" Value="{StaticResource TagsBoxControlForeground}" />
+ </Style>
+ <Style Selector="Button.labelFlyout:pressed /template/ ContentPresenter">
+ <Setter Property="BorderBrush" Value="{StaticResource TagsBoxControlForeground}" />
+ </Style>
+ <Style Selector="Button.labelFlyout:disabled /template/ ContentPresenter">
+ <Setter Property="BorderBrush" Value="{StaticResource TagsBoxControlForeground}" />
+ </Style>
+ </DockPanel.Styles>
+ <c:TagsBox Padding="0"
+ BorderThickness="0"
+ DockPanel.Dock="Left"
+ IsReadOnly="True"
+ Items="{Binding Label}"
VerticalAlignment="Center" />
+ <Button Classes="labelFlyout"
+ IsVisible="{Binding !!FilteredLabel.Count}"
+ DockPanel.Dock="Left"
+ Content="...">
+ <Button.Flyout>
+ <Flyout Placement="Bottom" ShowMode="TransientWithDismissOnPointerMoveAway">
+ <c:TagsBox IsReadOnly="True"
+ Items="{Binding FilteredLabel}" />
+ </Flyout>
+ </Button.Flyout>
+ </Button>
</DockPanel>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>

Show only first label and flyout for the rest of the labels