From f5e5fe57806b91533aa487ee1b9b7873371042be Mon Sep 17 00:00:00 2001 From: Jack251970 <1160210343@qq.com> Date: Sun, 5 Oct 2025 20:31:03 +0800 Subject: [PATCH] Fix UI error --- .../SettingPages/Views/SettingsPaneHotkey.xaml.cs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/Flow.Launcher/SettingPages/Views/SettingsPaneHotkey.xaml.cs b/Flow.Launcher/SettingPages/Views/SettingsPaneHotkey.xaml.cs index efcda95e0..ef98b921f 100644 --- a/Flow.Launcher/SettingPages/Views/SettingsPaneHotkey.xaml.cs +++ b/Flow.Launcher/SettingPages/Views/SettingsPaneHotkey.xaml.cs @@ -54,11 +54,7 @@ public partial class SettingsPaneHotkey var excard = new SettingsExpander() { Header = metadata.Name, - Margin = new Thickness(0, 4, 0, 0), - }; - var hotkeyStackPanel = new StackPanel - { - Orientation = Orientation.Vertical + Margin = new Thickness(0, 4, 0, 0) }; var sortedHotkeyInfo = hotkeyInfo.OrderBy(h => h.Id).ToList(); @@ -96,9 +92,8 @@ public partial class SettingsPaneHotkey }; card.Content = hotkeyDisplay; } - hotkeyStackPanel.Children.Add(card); + excard.Items.Add(card); } - excard.Content = hotkeyStackPanel; PluginHotkeySettings.Children.Add(excard); } }