From 43bf6342cad39d5695c6d9e3fcfce31b0dea209f Mon Sep 17 00:00:00 2001
From: Jack251970 <1160210343@qq.com>
Date: Mon, 17 Mar 2025 11:19:47 +0800
Subject: [PATCH] Improve area text box
---
Flow.Launcher.Core/Plugin/JsonRPCPluginSettings.cs | 4 +---
Flow.Launcher/Resources/CustomControlTemplate.xaml | 1 -
.../Views/ExplorerSettings.xaml | 6 ++----
3 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/Flow.Launcher.Core/Plugin/JsonRPCPluginSettings.cs b/Flow.Launcher.Core/Plugin/JsonRPCPluginSettings.cs
index a9fcc802a..e086027a5 100644
--- a/Flow.Launcher.Core/Plugin/JsonRPCPluginSettings.cs
+++ b/Flow.Launcher.Core/Plugin/JsonRPCPluginSettings.cs
@@ -31,7 +31,6 @@ namespace Flow.Launcher.Core.Plugin
private static readonly Thickness SettingPanelItemLeftTopBottomMargin = (Thickness)Application.Current.FindResource("SettingPanelItemLeftTopBottomMargin");
private static readonly double SettingPanelTextBoxMinWidth = (double)Application.Current.FindResource("SettingPanelTextBoxMinWidth");
private static readonly double SettingPanelPathTextBoxWidth = (double)Application.Current.FindResource("SettingPanelPathTextBoxWidth");
- private static readonly double SettingPanelAreaTextBoxMinWidth = (double)Application.Current.FindResource("SettingPanelAreaTextBoxMinWidth");
private static readonly double SettingPanelAreaTextBoxMinHeight = (double)Application.Current.FindResource("SettingPanelAreaTextBoxMinHeight");
public async Task InitializeAsync()
@@ -327,8 +326,7 @@ namespace Flow.Launcher.Core.Plugin
var textBox = new TextBox()
{
MinHeight = SettingPanelAreaTextBoxMinHeight,
- MinWidth = SettingPanelAreaTextBoxMinWidth,
- HorizontalAlignment = HorizontalAlignment.Left,
+ HorizontalAlignment = HorizontalAlignment.Stretch,
VerticalAlignment = VerticalAlignment.Center,
Margin = SettingPanelItemLeftTopBottomMargin,
TextWrapping = TextWrapping.WrapWithOverflow,
diff --git a/Flow.Launcher/Resources/CustomControlTemplate.xaml b/Flow.Launcher/Resources/CustomControlTemplate.xaml
index 10d7ff987..eadd23bcd 100644
--- a/Flow.Launcher/Resources/CustomControlTemplate.xaml
+++ b/Flow.Launcher/Resources/CustomControlTemplate.xaml
@@ -5605,7 +5605,6 @@
180
240
- 270
150