Improve flyout display
MODIFY
WalletWasabi.Fluent/ViewModels/SearchBar/Sources/TransactionItemsSource.cs
WalletWasabi.Fluent/ViewModels/SearchBar/Sources/TransactionItemsSource.cs
@@ -15,7 +15,7 @@ public class TransactionsSource : ISearchItemSource
private static ISearchItem ToSearchItem(TransactionEntry r)
{
- var transactionId = new string(r.HistoryItem.Id.ToString().Trim('0').Take(10).ToArray());
+ var transactionId = r.HistoryItem.Id.ToString();
var keywords = new[] { r.HistoryItem.Id.ToString() };
return new ActionableItem(
transactionId,

MODIFY
WalletWasabi.Fluent/Views/SearchBar/SearchBarDropdown.axaml
WalletWasabi.Fluent/Views/SearchBar/SearchBarDropdown.axaml
VerticalContentAlignment="Stretch"
Content="{Binding Content}" />
</DockPanel>
+
</DataTemplate>
<DataTemplate DataType="searchItems:ActionableItem">
<Button Command="{Binding Command}" ClickMode="Press" Classes="searchItem" Background="Transparent"
Foreground="{DynamicResource AcrylicTrimForeground}" HorizontalAlignment="Stretch" Padding="0" Cursor="Hand">
- <DockPanel Background="Transparent" Margin="10">
+ <Grid ColumnDefinitions="16 Auto *" Background="Transparent" Margin="10">
<PathIcon Width="16" Height="16" Opacity="0.8" VerticalAlignment="Center" Foreground="{DynamicResource AcrylicTrimForeground}"
Data="{Binding Icon, Converter={x:Static conv:NavBarIconConverter.Instance}}" />
- <TextBlock Margin="10 0 10 0" Text="{Binding Name}" VerticalAlignment="Center" />
- <TextBlock Opacity="0.5" VerticalAlignment="Center" Text="{Binding Description}"
+ <TextBlock Grid.Column="1" Margin="10 0 10 0" Text="{Binding Name}"
+ ToolTip.Tip="{Binding Name}"
+ VerticalAlignment="Center" TextTrimming="CharacterEllipsis" MaxWidth="150" />
+ <TextBlock Grid.Column="2" Opacity="0.5" VerticalAlignment="Center" ToolTip.Tip="{Binding Description}" Text="{Binding Description}"
TextTrimming="CharacterEllipsis" />
- </DockPanel>
+ </Grid>
<i:Interaction.Behaviors>
<EventTriggerBehavior EventName="Click">
<ItemsControl IsVisible="{Binding HasResults^}" Items="{Binding Groups}">
<ItemsControl.ItemTemplate>
<DataTemplate DataType="{x:Type sb:SearchItemGroup}">
- <DockPanel Margin="0 0 0 10">
+ <Grid Margin="0 0 0 10" RowDefinitions="Auto,*">
<TextBlock Text="{Binding Title}" DockPanel.Dock="Top" />
- <ItemsControl x:Name="ListBox" Items="{Binding Items}" />
- </DockPanel>
+ <ItemsControl Grid.Row="1" x:Name="ListBox" Items="{Binding Items}" />
+ </Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>

Improve flyout display