Skip to content

Commit 024bf64

Browse files
committed
Use trick for left alignment
1 parent 3fee5ae commit 024bf64

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

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

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,12 @@
166166
</UserControl.Resources>
167167

168168
<Grid Margin="{StaticResource SettingPanelMargin}">
169+
<!-- Here Margin="-25 0" for TabControl and Margin="25 0" for content in TabItem are trick to force left alignment -->
170+
<!-- Since head items in TabControl have additional left-right spacing -->
169171
<TabControl
170172
x:Name="TabView"
171173
MinHeight="0"
174+
Margin="-25 0"
172175
Background="{DynamicResource Color00B}"
173176
BorderThickness="0"
174177
SelectedIndex="0"
@@ -182,7 +185,7 @@
182185
Width="Auto"
183186
Header="{DynamicResource plugin_explorer_generalsetting_header}"
184187
Style="{DynamicResource ExplorerTabItem}">
185-
<Grid>
188+
<Grid Margin="25 0">
186189
<Grid.RowDefinitions>
187190
<RowDefinition />
188191
<RowDefinition />
@@ -399,7 +402,7 @@
399402
Width="Auto"
400403
Header="{DynamicResource plugin_explorer_native_context_menu_header}"
401404
Style="{DynamicResource ExplorerTabItem}">
402-
<Grid>
405+
<Grid Margin="25 0">
403406
<Grid.RowDefinitions>
404407
<RowDefinition />
405408
<RowDefinition />
@@ -465,7 +468,7 @@
465468
Width="Auto"
466469
Header="{DynamicResource plugin_explorer_previewpanel_setting_header}"
467470
Style="{DynamicResource ExplorerTabItem}">
468-
<Grid>
471+
<Grid Margin="25 0">
469472
<Grid.RowDefinitions>
470473
<RowDefinition />
471474
<RowDefinition />
@@ -554,7 +557,7 @@
554557
Width="Auto"
555558
Header="{DynamicResource plugin_explorer_everything_setting_header}"
556559
Style="{DynamicResource ExplorerTabItem}">
557-
<Grid>
560+
<Grid Margin="25 0">
558561
<Grid.RowDefinitions>
559562
<RowDefinition />
560563
<RowDefinition />
@@ -642,7 +645,7 @@
642645
Width="Auto"
643646
Header="{DynamicResource plugin_explorer_manageactionkeywords_header}"
644647
Style="{DynamicResource ExplorerTabItem}">
645-
<Grid>
648+
<Grid Margin="25 0">
646649
<Grid.RowDefinitions>
647650
<RowDefinition />
648651
<RowDefinition />
@@ -685,7 +688,7 @@
685688
Width="Auto"
686689
Header="{DynamicResource plugin_explorer_quickaccesslinks_header}"
687690
Style="{DynamicResource ExplorerTabItem}">
688-
<Grid>
691+
<Grid Margin="25 0">
689692
<Grid.RowDefinitions>
690693
<RowDefinition />
691694
<RowDefinition />
@@ -746,7 +749,7 @@
746749
Width="Auto"
747750
Header="{DynamicResource plugin_explorer_indexsearchexcludedpaths_header}"
748751
Style="{DynamicResource ExplorerTabItem}">
749-
<Grid>
752+
<Grid Margin="25 0">
750753
<Grid.RowDefinitions>
751754
<RowDefinition />
752755
<RowDefinition />

0 commit comments

Comments
 (0)