diff --git a/StarterNG/Views/Scenarios.axaml b/StarterNG/Views/Scenarios.axaml index d19b930..8b809cd 100644 --- a/StarterNG/Views/Scenarios.axaml +++ b/StarterNG/Views/Scenarios.axaml @@ -7,7 +7,7 @@ mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450" x:Class="StarterNG.Views.Scenarios" x:CompileBindings="True"> - + @@ -15,8 +15,9 @@ - - + + + /// The floor of the consist row, so the small thumbnails do not sit in the + /// height the large ones need. + /// + private const double SmallConsistRowHeight = 84; + + private const double LargeConsistRowHeight = 120; + + private void SyncConsistRowHeight() => + scenariosGrid.RowDefinitions[1].MinHeight = AppServices.Current.Settings.LargeThumbnails + ? LargeConsistRowHeight + : SmallConsistRowHeight; + public void RefreshConsistView() { + SyncConsistRowHeight(); RefreshVehicleLabels(); if (AppServices.Current.State.CurrentTrainset is { } trainset) ShowConsist(trainset);