Skip to content

Commit 43bf634

Browse files
committed
Improve area text box
1 parent fcd7e55 commit 43bf634

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

Flow.Launcher.Core/Plugin/JsonRPCPluginSettings.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public class JsonRPCPluginSettings
3131
private static readonly Thickness SettingPanelItemLeftTopBottomMargin = (Thickness)Application.Current.FindResource("SettingPanelItemLeftTopBottomMargin");
3232
private static readonly double SettingPanelTextBoxMinWidth = (double)Application.Current.FindResource("SettingPanelTextBoxMinWidth");
3333
private static readonly double SettingPanelPathTextBoxWidth = (double)Application.Current.FindResource("SettingPanelPathTextBoxWidth");
34-
private static readonly double SettingPanelAreaTextBoxMinWidth = (double)Application.Current.FindResource("SettingPanelAreaTextBoxMinWidth");
3534
private static readonly double SettingPanelAreaTextBoxMinHeight = (double)Application.Current.FindResource("SettingPanelAreaTextBoxMinHeight");
3635

3736
public async Task InitializeAsync()
@@ -327,8 +326,7 @@ public Control CreateSettingPanel()
327326
var textBox = new TextBox()
328327
{
329328
MinHeight = SettingPanelAreaTextBoxMinHeight,
330-
MinWidth = SettingPanelAreaTextBoxMinWidth,
331-
HorizontalAlignment = HorizontalAlignment.Left,
329+
HorizontalAlignment = HorizontalAlignment.Stretch,
332330
VerticalAlignment = VerticalAlignment.Center,
333331
Margin = SettingPanelItemLeftTopBottomMargin,
334332
TextWrapping = TextWrapping.WrapWithOverflow,

Flow.Launcher/Resources/CustomControlTemplate.xaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5605,7 +5605,6 @@
56055605

56065606
<system:Double x:Key="SettingPanelTextBoxMinWidth">180</system:Double>
56075607
<system:Double x:Key="SettingPanelPathTextBoxWidth">240</system:Double>
5608-
<system:Double x:Key="SettingPanelAreaTextBoxMinWidth">270</system:Double>
56095608
<system:Double x:Key="SettingPanelAreaTextBoxMinHeight">150</system:Double>
56105609

56115610
<Style x:Key="SettingPanelTextBlockDescriptionStyle" TargetType="TextBlock">

Plugins/Flow.Launcher.Plugin.Explorer/Views/ExplorerSettings.xaml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -358,10 +358,9 @@
358358
Grid.Row="15"
359359
Grid.Column="0"
360360
Grid.ColumnSpan="2"
361-
MinWidth="{StaticResource SettingPanelAreaTextBoxMinWidth}"
362361
MinHeight="{StaticResource SettingPanelAreaTextBoxMinHeight}"
363362
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
364-
HorizontalAlignment="Left"
363+
HorizontalAlignment="Stretch"
365364
AcceptsReturn="True"
366365
Text="{Binding WindowsContextMenuIncludedItems}"
367366
TextWrapping="Wrap" />
@@ -378,10 +377,9 @@
378377
Grid.Row="17"
379378
Grid.Column="0"
380379
Grid.ColumnSpan="2"
381-
MinWidth="{StaticResource SettingPanelAreaTextBoxMinWidth}"
382380
MinHeight="{StaticResource SettingPanelAreaTextBoxMinHeight}"
383381
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
384-
HorizontalAlignment="Left"
382+
HorizontalAlignment="Stretch"
385383
AcceptsReturn="True"
386384
Text="{Binding WindowsContextMenuExcludedItems}"
387385
TextWrapping="Wrap" />

0 commit comments

Comments
 (0)