From 333eb24db6597d37786fe2a75c1469a801b2cd69 Mon Sep 17 00:00:00 2001 From: "j.foucher" Date: Sun, 3 May 2026 08:25:56 +0200 Subject: [PATCH] LicenseDetailsDialog: header wraps long subtitles + auto-resize MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The « Update license expired » header was truncating the « Expired on X. You can still download versions… » subtitle: no TextWrapping on the TextBlock and the inner StackPanel had no horizontal width constraint. Switched the icon-and-text layout from a horizontal StackPanel to a 2-column Grid (Auto + *) so the text column expands to the Border width. TextWrapping="Wrap" on title + subtitle, icon now top-aligned to follow the wrap. Window switched to SizeToContent="Height" with MinHeight=480 so it grows when the localized message wraps to 3+ lines. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../Views/LicenseDetailsDialog.xaml | 28 +++++++++++++------ 1 file changed, 20 insertions(+), 8 deletions(-) diff --git a/src/PSLauncher.App/Views/LicenseDetailsDialog.xaml b/src/PSLauncher.App/Views/LicenseDetailsDialog.xaml index 8bec82a..e07bb43 100644 --- a/src/PSLauncher.App/Views/LicenseDetailsDialog.xaml +++ b/src/PSLauncher.App/Views/LicenseDetailsDialog.xaml @@ -4,7 +4,9 @@ xmlns:loc="clr-namespace:PSLauncher.Core.Localization;assembly=PSLauncher.Core" Title="License" Icon="pack://application:,,,/Resources/favicon.ico" - Width="500" Height="480" + Width="540" Height="540" + SizeToContent="Height" + MinHeight="480" ResizeMode="NoResize" WindowStartupLocation="CenterOwner" Background="{StaticResource Brush.Bg.Window}"> @@ -16,24 +18,34 @@ - + - - + + + + + - + VerticalAlignment="Top" Margin="0,0,16,0" /> + + Margin="0,4,0,0" /> - +