Skip to content

Commit 1681ac4

Browse files
committed
Fix path select button possibly invisible issue
1 parent ae8f647 commit 1681ac4

File tree

3 files changed

+8
-7
lines changed

3 files changed

+8
-7
lines changed

Flow.Launcher.Core/Plugin/JsonRPCPluginSettings.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class JsonRPCPluginSettings
3030
private static readonly Thickness SettingPanelItemTopBottomMargin = (Thickness)Application.Current.FindResource("SettingPanelItemTopBottomMargin");
3131
private static readonly Thickness SettingPanelItemLeftTopBottomMargin = (Thickness)Application.Current.FindResource("SettingPanelItemLeftTopBottomMargin");
3232
private static readonly double SettingPanelTextBoxMinWidth = (double)Application.Current.FindResource("SettingPanelTextBoxMinWidth");
33-
private static readonly double SettingPanelPathTextBoxMinWidth = (double)Application.Current.FindResource("SettingPanelPathTextBoxMinWidth");
33+
private static readonly double SettingPanelPathTextBoxWidth = (double)Application.Current.FindResource("SettingPanelPathTextBoxWidth");
3434
private static readonly double SettingPanelAreaTextBoxMinWidth = (double)Application.Current.FindResource("SettingPanelAreaTextBoxMinWidth");
3535
private static readonly double SettingPanelAreaTextBoxMinHeight = (double)Application.Current.FindResource("SettingPanelAreaTextBoxMinHeight");
3636

@@ -259,7 +259,7 @@ public void Save()
259259
{
260260
var textBox = new TextBox()
261261
{
262-
MinWidth = SettingPanelPathTextBoxMinWidth,
262+
Width = SettingPanelPathTextBoxWidth,
263263
HorizontalAlignment = HorizontalAlignment.Left,
264264
VerticalAlignment = VerticalAlignment.Center,
265265
Margin = SettingPanelItemLeftMargin,

Flow.Launcher/Resources/CustomControlTemplate.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5604,7 +5604,7 @@
56045604
</Style>
56055605

56065606
<system:Double x:Key="SettingPanelTextBoxMinWidth">180</system:Double>
5607-
<system:Double x:Key="SettingPanelPathTextBoxMinWidth">240</system:Double>
5607+
<system:Double x:Key="SettingPanelPathTextBoxWidth">240</system:Double>
56085608
<system:Double x:Key="SettingPanelAreaTextBoxMinWidth">270</system:Double>
56095609
<system:Double x:Key="SettingPanelAreaTextBoxMinHeight">150</system:Double>
56105610

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
175175
Orientation="Horizontal">
176176
<TextBox
177-
MinWidth="{StaticResource SettingPanelPathTextBoxMinWidth}"
177+
Width="{StaticResource SettingPanelPathTextBoxWidth}"
178178
HorizontalAlignment="Left"
179179
VerticalAlignment="Center"
180180
Text="{Binding FileEditorPath}"
@@ -200,7 +200,7 @@
200200
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
201201
Orientation="Horizontal">
202202
<TextBox
203-
MinWidth="{StaticResource SettingPanelPathTextBoxMinWidth}"
203+
Width="{StaticResource SettingPanelPathTextBoxWidth}"
204204
HorizontalAlignment="Left"
205205
VerticalAlignment="Center"
206206
Text="{Binding FolderEditorPath}"
@@ -226,7 +226,7 @@
226226
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
227227
Orientation="Horizontal">
228228
<TextBox
229-
MinWidth="{StaticResource SettingPanelPathTextBoxMinWidth}"
229+
Width="{StaticResource SettingPanelPathTextBoxWidth}"
230230
HorizontalAlignment="Left"
231231
VerticalAlignment="Center"
232232
Text="{Binding ShellPath}"
@@ -523,10 +523,11 @@
523523
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
524524
VerticalAlignment="Center"
525525
Text="{DynamicResource plugin_explorer_everything_installed_path}" />
526+
<!-- Here we can use min width because there is no botton following textbox -->
526527
<TextBox
527528
Grid.Row="26"
528529
Grid.Column="1"
529-
MinWidth="{StaticResource SettingPanelPathTextBoxMinWidth}"
530+
MinWidth="{StaticResource SettingPanelPathTextBoxWidth}"
530531
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
531532
HorizontalAlignment="Left"
532533
Text="{Binding EverythingInstalledPath}" />

0 commit comments

Comments
 (0)