Skip to content

Commit 6c1c9fe

Browse files
committed
Use wrap panel
1 parent af9050c commit 6c1c9fe

File tree

1 file changed

+12
-18
lines changed

1 file changed

+12
-18
lines changed

Plugins/Flow.Launcher.Plugin.WebSearch/SettingsControl.xaml

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -148,20 +148,16 @@
148148

149149
<Separator Grid.Row="2" Style="{StaticResource SettingPanelSeparatorStyle}" />
150150

151-
<StackPanel
152-
Grid.Row="3"
153-
HorizontalAlignment="Right"
154-
Orientation="Vertical">
151+
<WrapPanel Grid.Row="3" HorizontalAlignment="Stretch">
155152
<StackPanel Orientation="Horizontal">
156153
<TextBlock
157-
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
158-
HorizontalAlignment="Right"
154+
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
159155
VerticalAlignment="Center"
160156
Text="{DynamicResource flowlauncher_plugin_websearch_max_suggestions}" />
161157
<ui:NumberBox
162158
Width="120"
163159
MinWidth="120"
164-
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
160+
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
165161
Maximum="1000"
166162
Minimum="1"
167163
SmallChange="10"
@@ -170,27 +166,25 @@
170166
ValueChanged="NumberBox_ValueChanged"
171167
Value="{Binding Settings.MaxSuggestions, Mode=OneWay}" />
172168
</StackPanel>
169+
<CheckBox
170+
Name="EnableSuggestion"
171+
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
172+
VerticalAlignment="Center"
173+
Content="{DynamicResource flowlauncher_plugin_websearch_enable_suggestion}"
174+
IsChecked="{Binding Settings.EnableSuggestion}" />
173175
<StackPanel Orientation="Horizontal">
174176
<TextBlock
175-
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
176-
HorizontalAlignment="Right"
177+
Margin="{StaticResource SettingPanelItemRightTopBottomMargin}"
177178
VerticalAlignment="Center"
178179
Text="{DynamicResource flowlauncher_plugin_websearch_enable_suggestion_provider}" />
179180
<ComboBox
180181
Height="30"
181-
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
182+
Margin="{StaticResource SettingPanelItemTopBottomMargin}"
182183
VerticalAlignment="Center"
183184
IsEnabled="{Binding Settings.EnableSuggestion}"
184185
ItemsSource="{Binding Settings.Suggestions}"
185186
SelectedItem="{Binding Settings.SelectedSuggestion}" />
186-
<CheckBox
187-
Name="EnableSuggestion"
188-
Margin="{StaticResource SettingPanelItemLeftTopBottomMargin}"
189-
HorizontalAlignment="Right"
190-
VerticalAlignment="Center"
191-
Content="{DynamicResource flowlauncher_plugin_websearch_enable_suggestion}"
192-
IsChecked="{Binding Settings.EnableSuggestion}" />
193187
</StackPanel>
194-
</StackPanel>
188+
</WrapPanel>
195189
</Grid>
196190
</UserControl>

0 commit comments

Comments
 (0)