Skip to content

Commit 3d3e3fb

Browse files
authored
Fix: Fixed issue where content on the search results page wasn't centered (#10570)
1 parent be3288b commit 3d3e3fb

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

src/Files.App/Strings/en-US/Resources.resw

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1645,7 +1645,7 @@
16451645
<value>Didn't find what you're looking for?</value>
16461646
</data>
16471647
<data name="SearchUnindexedItemsButton.Content" xml:space="preserve">
1648-
<value>Search unindexed items.</value>
1648+
<value>Search unindexed items</value>
16491649
</data>
16501650
<data name="SettingsAppearanceOpenThemesFolderButton.Content" xml:space="preserve">
16511651
<value>Open themes folder</value>

src/Files.App/Views/LayoutModes/DetailsLayoutBrowser.xaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,20 @@
196196
Canvas.ZIndex="0"
197197
EmptyTextType="{x:Bind ParentShellPageInstance.FilesystemViewModel.EmptyTextType, Mode=OneWay}" />
198198

199+
<StackPanel
200+
x:Name="SearchUnindexedItemsPanel"
201+
HorizontalAlignment="Center"
202+
VerticalAlignment="Bottom"
203+
x:Load="{x:Bind InstanceViewModel.ShowSearchUnindexedItemsMessage, Mode=OneWay}"
204+
Orientation="Vertical">
205+
<TextBlock Text="{helpers:ResourceString Name=SearchUnindexedItemsLabel/Text}" />
206+
<HyperlinkButton
207+
x:Name="SearchUnindexedItemsButton"
208+
HorizontalAlignment="Center"
209+
Command="{x:Bind CommandsViewModel.SearchUnindexedItems}"
210+
Content="{helpers:ResourceString Name=SearchUnindexedItemsButton/Content}" />
211+
</StackPanel>
212+
199213
<TeachingTip
200214
x:Name="FileNameTeachingTip"
201215
CloseButtonContent="{helpers:ResourceString Name=FileNameTeachingTip/CloseButtonContent}"
@@ -877,20 +891,6 @@
877891
<ItemsStackPanel AreStickyGroupHeadersEnabled="False" Orientation="Vertical" />
878892
</ItemsPanelTemplate>
879893
</ListView.ItemsPanel>
880-
<ListView.Footer>
881-
<StackPanel
882-
x:Name="SearchUnindexedItemsPanel"
883-
HorizontalAlignment="Stretch"
884-
x:Load="{x:Bind InstanceViewModel.ShowSearchUnindexedItemsMessage, Mode=OneWay}"
885-
Orientation="Vertical">
886-
<TextBlock HorizontalTextAlignment="Center" Text="{helpers:ResourceString Name=SearchUnindexedItemsLabel/Text}" />
887-
<HyperlinkButton
888-
x:Name="SearchUnindexedItemsButton"
889-
HorizontalAlignment="Center"
890-
Command="{x:Bind CommandsViewModel.SearchUnindexedItems}"
891-
Content="{helpers:ResourceString Name=SearchUnindexedItemsButton/Content}" />
892-
</StackPanel>
893-
</ListView.Footer>
894894
</ListView>
895895
</SemanticZoom.ZoomedInView>
896896

0 commit comments

Comments
 (0)