Fixed PreviewItem
MODIFY
WalletWasabi.Fluent/Controls/PreviewItem.axaml
WalletWasabi.Fluent/Controls/PreviewItem.axaml
<Design.PreviewWith>
<Border Height="100" Width="400">
<c:PreviewItem Label="Transaction ID"
- TextValue="Text to copy">
- </c:PreviewItem>
+ TextValue="Text to copy" />
</Border>
</Design.PreviewWith>
Data="{TemplateBinding Icon}"
Opacity="0.5"
Foreground="{StaticResource SystemAccentNeutralColor}"
- IsVisible="{TemplateBinding IsIconVisible}" DockPanel.Dock="Left" />
- <DockPanel DockPanel.Dock="Right" Margin="30 0 0 0">
- <TextBlock Name="PART_Text" Text="{TemplateBinding Label}" DockPanel.Dock="Top" Margin="0 0 0 5" Opacity="0.6" />
+ DockPanel.Dock="Left" IsVisible="{TemplateBinding Icon, Converter={x:Static ObjectConverters.IsNotNull}}" />
+ <DockPanel DockPanel.Dock="Right" Margin="20 0 0 0">
+ <TextBlock Name="PART_Text" Text="{TemplateBinding Label}" DockPanel.Dock="Top" Margin="0 0 0 5"
+ Opacity="0.6" />
<DockPanel HorizontalAlignment="Left" DockPanel.Dock="Bottom">
- <c:ClipboardCopyButton ToolTip.Tip="Copy" ToolTip.Placement="Bottom" DockPanel.Dock="Right" Width="30" Text="{TemplateBinding TextValue}" IsVisible="{TemplateBinding IsCopyButtonVisible}" />
+ <c:ClipboardCopyButton ToolTip.Tip="Copy" ToolTip.Placement="Bottom" DockPanel.Dock="Right" Width="30"
+ Text="{TemplateBinding TextValue}"
+ IsVisible="{TemplateBinding IsCopyButtonVisible}" />
<Panel>
<ContentPresenter Name="PART_ContentPresenter" Content="{TemplateBinding Content}"
ContentTemplate="{TemplateBinding ContentTemplate}"
</Style>
<!-- Transitions -->
- <Style Selector="c|PreviewItem /template/ ContentPresenter#PART_ContentPresenter,
+ <Style
+ Selector="c|PreviewItem /template/ ContentPresenter#PART_ContentPresenter,
c|PreviewItem /template/ TextBlock#PART_ContentReplacementTextBlock">
<Setter Property="Transitions">
<Transitions>
</Transitions>
</Setter>
</Style>
- <Style Selector="c|PreviewItem /template/ TextBlock#PART_ContentReplacementTextBlock[IsVisible=True],
+ <Style
+ Selector="c|PreviewItem /template/ TextBlock#PART_ContentReplacementTextBlock[IsVisible=True],
c|PreviewItem /template/ ContentPresenter#PART_ContentPresenter[IsVisible=True]">
<Setter Property="Opacity" Value="1" />
</Style>
- <Style Selector="c|PreviewItem /template/ TextBlock#PART_ContentReplacementTextBlock[IsVisible=False],
+ <Style
+ Selector="c|PreviewItem /template/ TextBlock#PART_ContentReplacementTextBlock[IsVisible=False],
c|PreviewItem /template/ ContentPresenter#PART_ContentPresenter[IsVisible=False]">
<Setter Property="Opacity" Value="0" />
</Style>

MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/History/CoinJoinDetailsView.axaml
WalletWasabi.Fluent/Views/Wallets/Home/History/CoinJoinDetailsView.axaml
<ItemsRepeater Items="{Binding TransactionIds}">
<ItemsRepeater.ItemTemplate>
<DataTemplate>
- <c:PreviewItem Icon="{StaticResource transaction_id}" TextValue="{Binding }">
+ <c:PreviewItem TextValue="{Binding }">
<c:PrivacyContentControl NumberOfPrivacyChars="48">
<TextBlock Text="{Binding }" Classes="monoSpaced"/>
</c:PrivacyContentControl>

Fixed PreviewItem