From fa9d4a4769114fd051299b90c5e3a8f2f0eccb31 Mon Sep 17 00:00:00 2001 From: Miheichev Aleksandr Sergeevich Date: Wed, 7 Oct 2026 03:09:32 +0000 Subject: [PATCH] fix(ui): line up the backup dialog columns again (#10302) #10292 made the label and button columns of the backup view Auto with a minimum width, so that longer labels and buttons fit. Each of the two cards sizes its own grid, so when the remote (WebDAV) buttons are wider than the local ones, the local buttons no longer sit under the remote ones and the separators of the two cards differ in length. This shows in English and in every other language except Chinese. Share the column widths of the two cards with SharedSizeGroup: both cards line up again, and the long labels and buttons still fit. In Avalonia the buttons stay centred in the shared column; in WPF they fill it as before, so the local buttons get as wide as the remote ones. --- .../Views/BackupAndRestoreView.axaml | 22 ++++++++++++++----- v2rayN/v2rayN/Views/BackupAndRestoreView.xaml | 22 ++++++++++++++----- 2 files changed, 34 insertions(+), 10 deletions(-) diff --git a/v2rayN/v2rayN.Desktop/Views/BackupAndRestoreView.axaml b/v2rayN/v2rayN.Desktop/Views/BackupAndRestoreView.axaml index 87c6cf57..d11e00f5 100644 --- a/v2rayN/v2rayN.Desktop/Views/BackupAndRestoreView.axaml +++ b/v2rayN/v2rayN.Desktop/Views/BackupAndRestoreView.axaml @@ -24,7 +24,7 @@ HorizontalAlignment="Left" /> - + - - + + - - + + - + @@ -40,8 +40,14 @@ - - + + - - + +