make table more compact when needed.
MODIFY
WalletWasabi.Fluent/Views/Wallets/Home/History/HistoryTable.axaml
WalletWasabi.Fluent/Views/Wallets/Home/History/HistoryTable.axaml
</DataBox.Styles>
<DataBox.Columns>
-
- <!-- Date -->
- <DataBoxTemplateColumn Header="Date / Time"
- Width="Auto">
+ <!-- Indicators -->
+ <DataBoxTemplateColumn Width="Auto"
+ MinWidth="120"
+ CanUserSort="False">
<DataBoxTemplateColumn.CellTemplate>
<DataTemplate>
- <c:PrivacyContentControl x:DataType="historyItems:HistoryItemViewModelBase"
- Content="{Binding DateString}"
- Classes="monoSpaced"
- FontSize="15"
- Margin="10 0"
- NumberOfPrivacyChars="15" />
- </DataTemplate>
- </DataBoxTemplateColumn.CellTemplate>
- </DataBoxTemplateColumn>
+ <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
+ <Button x:DataType="historyItems:HistoryItemViewModelBase" Classes="plain" ToolTip.Tip="Show Details"
+ Command="{Binding ShowDetailsCommand}">
+ <PathIcon Data="{StaticResource details_regular}" Height="15" Opacity="0.6" />
+ </Button>
+ <Panel x:DataType="historyItems:HistoryItemViewModelBase">
+ <!-- Confirmed -->
+ <PathIcon IsVisible="{Binding IsConfirmed}"
+ Data="{StaticResource checkmark_filled}"
+ Foreground="{DynamicResource SystemAccentColor}"
+ Height="11"
+ ToolTip.Tip="Confirmed"/>
+ <!-- Pending -->
+ <PathIcon IsVisible="{Binding !IsConfirmed}"
+ Data="{StaticResource clock_regular}"
+ Height="14"
+ Opacity="0.6"
+ ToolTip.Tip="Pending"/>
+ </Panel>
<!-- Type -->
- <DataBoxTemplateColumn Header="Type"
- MinWidth="90"
- Width="Auto">
- <DataBoxTemplateColumn.CellTemplate>
- <DataTemplate>
<c:PrivacyContentControl PrivacyReplacementMode="Icon">
<c:PrivacyContentControl.Styles>
<Style Selector="c|PrivacyContentControl /template/ Viewbox#PART_Icon">
IsVisible="{Binding IsCoinJoin}" />
</Panel>
</c:PrivacyContentControl>
+ </StackPanel>
+ </DataTemplate>
+ </DataBoxTemplateColumn.CellTemplate>
+ </DataBoxTemplateColumn>
+
+ <!-- Date -->
+ <DataBoxTemplateColumn Header="Date / Time"
+ Width="Auto"
+ MinWidth="150">
+ <DataBoxTemplateColumn.CellTemplate>
+ <DataTemplate>
+ <c:PrivacyContentControl x:DataType="historyItems:HistoryItemViewModelBase"
+ Content="{Binding DateString}"
+ Classes="monoSpaced"
+ FontSize="15"
+ Margin="10 0"
+ NumberOfPrivacyChars="15" />
</DataTemplate>
</DataBoxTemplateColumn.CellTemplate>
</DataBoxTemplateColumn>
<!-- Incoming -->
<DataBoxTemplateColumn Header="Incoming (BTC)"
Width="*"
- MinWidth="160"
+ MinWidth="120"
MaxWidth="210">
<DataBoxTemplateColumn.CellTemplate>
<DataTemplate>
<!-- Outgoing -->
<DataBoxTemplateColumn Header="Outgoing (BTC)"
Width="*"
- MinWidth="160"
+ MinWidth="120"
MaxWidth="210">
<DataBoxTemplateColumn.CellTemplate>
<DataTemplate>
<!-- Balance -->
<DataBoxTemplateColumn Header="Balance (BTC)"
- MinWidth="160"
+ MinWidth="120"
Width="Auto">
<DataBoxTemplateColumn.CellTemplate>
<DataTemplate>
</DataTemplate>
</DataBoxTemplateColumn.CellTemplate>
</DataBoxTemplateColumn>
-
- <!-- Status -->
- <DataBoxTemplateColumn Width="Auto"
- MinWidth="55">
- <DataBoxTemplateColumn.CellTemplate>
- <DataTemplate>
- <Panel x:DataType="historyItems:HistoryItemViewModelBase">
- <!-- Confirmed -->
- <PathIcon IsVisible="{Binding IsConfirmed}"
- Data="{StaticResource checkmark_filled}"
- Foreground="{DynamicResource SystemAccentColor}"
- Height="11"
- ToolTip.Tip="Confirmed"/>
- <!-- Pending -->
- <PathIcon IsVisible="{Binding !IsConfirmed}"
- Data="{StaticResource clock_regular}"
- Height="14"
- Opacity="0.6"
- ToolTip.Tip="Pending"/>
- </Panel>
- </DataTemplate>
- </DataBoxTemplateColumn.CellTemplate>
- </DataBoxTemplateColumn>
-
- <!-- Details -->
- <DataBoxTemplateColumn Width="Auto"
- MinWidth="55"
- CanUserSort="False">
- <DataBoxTemplateColumn.CellTemplate>
- <DataTemplate>
- <Button x:DataType="historyItems:HistoryItemViewModelBase" Classes="plain" ToolTip.Tip="Show Details"
- Command="{Binding ShowDetailsCommand}">
- <PathIcon Data="{StaticResource details_regular}" Height="15" Opacity="0.6" />
- </Button>
- </DataTemplate>
- </DataBoxTemplateColumn.CellTemplate>
- </DataBoxTemplateColumn>
-
</DataBox.Columns>
</DataBox>
</UserControl>

make table more compact when needed.