Skip to content

Commit 7d769c5

Browse files
committed
Change the Add program source window to responsive
1 parent 83a14c1 commit 7d769c5

File tree

1 file changed

+23
-13
lines changed

1 file changed

+23
-13
lines changed

Plugins/Flow.Launcher.Plugin.Program/AddProgramSource.xaml

Lines changed: 23 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,11 @@
55
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
66
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
77
Title="{DynamicResource flowlauncher_plugin_program_directory}"
8-
Width="400"
8+
Width="Auto"
99
Background="{DynamicResource PopuBGColor}"
1010
Foreground="{DynamicResource PopupTextColor}"
11-
SizeToContent="Height"
11+
ResizeMode="NoResize"
12+
SizeToContent="WidthAndHeight"
1213
WindowStartupLocation="CenterScreen"
1314
mc:Ignorable="d">
1415
<WindowChrome.WindowChrome>
@@ -64,17 +65,26 @@
6465
TextAlignment="Left" />
6566
</StackPanel>
6667
<StackPanel Margin="0,0,0,10" Orientation="Horizontal">
67-
<TextBox
68-
Name="Directory"
69-
Width="268"
70-
Margin="0,7"
71-
VerticalAlignment="Center" />
72-
<Button
73-
Width="70"
74-
Margin="10"
75-
HorizontalAlignment="Right"
76-
Click="BrowseButton_Click"
77-
Content="{DynamicResource flowlauncher_plugin_program_browse}" />
68+
<Grid>
69+
<Grid.ColumnDefinitions>
70+
<ColumnDefinition Width="*" />
71+
<ColumnDefinition Width="Auto" />
72+
</Grid.ColumnDefinitions>
73+
<TextBox
74+
Name="Directory"
75+
Grid.Column="0"
76+
MinWidth="248"
77+
Margin="0,7"
78+
VerticalAlignment="Center" />
79+
<Button
80+
Grid.Column="1"
81+
MinWidth="80"
82+
Margin="10,10,0,10"
83+
Padding="14,6,14,6"
84+
HorizontalAlignment="Right"
85+
Click="BrowseButton_Click"
86+
Content="{DynamicResource flowlauncher_plugin_program_browse}" />
87+
</Grid>
7888
</StackPanel>
7989
</StackPanel>
8090
</StackPanel>

0 commit comments

Comments
 (0)