Update width triggers
MODIFY
WalletWasabi.Fluent/Controls/ResponsivePanel.cs
WalletWasabi.Fluent/Controls/ResponsivePanel.cs
@@ -190,14 +190,14 @@ namespace WalletWasabi.Fluent.Controls
aspectRatio = 1.0;
}
- var layoutIndex = columnHints.Count - 1;
+ var layoutIndex = 0;
var totalColumns = columnHints[layoutIndex];
if (!double.IsInfinity(width))
{
- for (var i = 0; i < widthTriggers.Count; i++)
+ for (var i = widthTriggers.Count - 1; i >= 0; i--)
{
- if (width < widthTriggers[i])
+ if (width >= widthTriggers[i])
{
totalColumns = columnHints[i];
layoutIndex = i;

MODIFY
WalletWasabi.Fluent/ViewModels/ResponsivePanelDemo/ResponsivePanelDemoViewModel.cs
WalletWasabi.Fluent/ViewModels/ResponsivePanelDemo/ResponsivePanelDemoViewModel.cs
@@ -8,7 +8,7 @@ namespace WalletWasabi.Fluent.ViewModels.ResponsivePanelDemo
[AutoNotify] private double _itemHeight = 150;
[AutoNotify] private double _widthSource = 990;
[AutoNotify] private double _aspectRatio = double.NaN;
- [AutoNotify] private AvaloniaList<int> _columnHints = new() { 1, 2, 3 };
- [AutoNotify] private AvaloniaList<double> _widthTriggers = new() { 330, 660, 990 };
+ [AutoNotify] private AvaloniaList<int> _columnHints = new() { 1, 2, 3, 4 };
+ [AutoNotify] private AvaloniaList<double> _widthTriggers = new() { 0, 660, 990, 1320 };
}
}
\ No newline at end of file

Update width triggers