remove PlaceholderRowsCalculatorBehavior.cs and add partitioning to the dummy txn lines
DELETE
WalletWasabi.Fluent/Behaviors/PlaceholderRowsCalculatorBehavior.cs
-using System.Collections.Generic;
-using System.Linq;
-using System.Reactive.Disposables;
-using System.Reactive.Linq;
-using Avalonia.Threading;
-using ReactiveUI;
-
-namespace WalletWasabi.Fluent.Behaviors;
-
-public class PlaceholderRowsCalculatorBehavior : AttachedToVisualTreeBehavior<DataBox.DataBox>
-{
- protected override void OnAttachedToVisualTree(CompositeDisposable disposables)
- {
- if (AssociatedObject is null)
- {
- return;
- }
-
- AssociatedObject.Parent.WhenAnyValue(x => x.Bounds)
- .Select(x => x.Height)
- // .Where(x => x > 0)
- .Subscribe(CalculateRows)
- .DisposeWith(disposables);
- }
-
- private void CalculateRows(double height)
- {
- var totalRows = (int) Math.Floor(Math.Max(3, height / 42));
- var deltaOpacity = 1d / totalRows;
-
- AssociatedObject.Items =
- Enumerable
- .Range(1, totalRows)
- .Reverse()
- .Select(mult => mult * deltaOpacity)
- .ToList();
- }
-}
\ No newline at end of file

MODIFY
WalletWasabi.Fluent/Controls/HistoryPlaceholderPanel.axaml
WalletWasabi.Fluent/Controls/HistoryPlaceholderPanel.axaml
<Setter Property="Template">
<ControlTemplate>
<Panel>
+ <Panel.Styles>
+ <Style Selector="Border.dummyLine">
+ <Setter Property="Opacity" Value="{Binding .}"/>
+ <Setter Property="Background" Value="{DynamicResource SystemChromeGrayColor}"/>
+ <Setter Property="Height" Value="10"/>
+ <Setter Property="CornerRadius" Value="5"/>
+ <Setter Property="Margin" Value="5 0"/>
+ </Style>
+ </Panel.Styles>
<ItemsControl x:Name="PART_DummyRows" x:CompileBindings="False">
<ItemsControl.ItemsPanel>
<ItemsPanelTemplate>
</ItemsControl.ItemsPanel>
<ItemsControl.ItemTemplate>
<DataTemplate>
- <Panel Height="{StaticResource HistoryTableRowHeight}">
- <Border Opacity="{Binding .}"
- Background="{DynamicResource SystemChromeGrayColor}"
- Height="10"
- CornerRadius="5" Margin="5 0" />
- </Panel>
+ <Grid
+ ColumnDefinitions="80,150,*,120,120,120"
+ Height="{StaticResource HistoryTableRowHeight}">
+
+ <Border Grid.Column="0" Grid.ColumnSpan="1" Classes="dummyLine"/>
+ <Border Grid.Column="1" Grid.ColumnSpan="1" Classes="dummyLine"/>
+ <Border Grid.Column="2" Grid.ColumnSpan="1" Classes="dummyLine"/>
+ <Border Grid.Column="3" Grid.ColumnSpan="1" Classes="dummyLine"/>
+ <Border Grid.Column="4" Grid.ColumnSpan="1" Classes="dummyLine"/>
+ <Border Grid.Column="5" Grid.ColumnSpan="1" Classes="dummyLine"/>
+ </Grid>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>

remove PlaceholderRowsCalculatorBehavior.cs and add partitioning to the dummy txn lines