From 5ea8ae6420a4d89ff2945c35f4b87c6c1c307a6b Mon Sep 17 00:00:00 2001 From: Miheichev Aleksandr Sergeevich Date: Wed, 7 Oct 2026 03:11:27 +0000 Subject: [PATCH] fix(ui): wrap the pre-release label in the update dialog (#10303) The per-core pre-release switch and its label sit in a horizontal StackPanel inside a fixed-width column of the update dialog. Translations longer than the column do not fit: in Avalonia the label runs over the core name and the update status (Russian, French, Hungarian, Persian), and in WPF it is cut off. Use a DockPanel so that the label wraps inside its column, as the interval label of the subscription window does since #10292. The dialog keeps its width. In Avalonia the panel also had a vertical margin on top of the margin of the switch, so the two rows with the switch were 8 px taller than the other rows. Use a horizontal-only margin, as the WPF view already does. --- v2rayN/v2rayN.Desktop/Views/CheckUpdateView.axaml | 13 +++++++------ v2rayN/v2rayN/Views/CheckUpdateView.xaml | 9 +++++---- 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/v2rayN/v2rayN.Desktop/Views/CheckUpdateView.axaml b/v2rayN/v2rayN.Desktop/Views/CheckUpdateView.axaml index 502914ac..b2e392c9 100644 --- a/v2rayN/v2rayN.Desktop/Views/CheckUpdateView.axaml +++ b/v2rayN/v2rayN.Desktop/Views/CheckUpdateView.axaml @@ -75,22 +75,23 @@ VerticalAlignment="Center" IsChecked="{Binding IsSelected}" /> - + Margin="{StaticResource MarginLr4}" + IsVisible="{Binding ShowCheckPreRelease}"> - + Text="{x:Static resx:ResUI.TbSettingsEnableCheckPreReleaseUpdate}" + TextWrapping="Wrap" /> + - - + Text="{x:Static resx:ResUI.TbSettingsEnableCheckPreReleaseUpdate}" + TextWrapping="Wrap" /> +