Skip to content

Commit

Permalink
Fix: Fixed issue where content on the search results page wasn't cent…
Browse files Browse the repository at this point in the history
…ered (#10570)
  • Loading branch information
itayweb authored Jan 17, 2023
1 parent be3288b commit 3d3e3fb
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/Files.App/Strings/en-US/Resources.resw
Original file line number Diff line number Diff line change
Expand Up @@ -1645,7 +1645,7 @@
<value>Didn't find what you're looking for?</value>
</data>
<data name="SearchUnindexedItemsButton.Content" xml:space="preserve">
<value>Search unindexed items.</value>
<value>Search unindexed items</value>
</data>
<data name="SettingsAppearanceOpenThemesFolderButton.Content" xml:space="preserve">
<value>Open themes folder</value>
Expand Down
28 changes: 14 additions & 14 deletions src/Files.App/Views/LayoutModes/DetailsLayoutBrowser.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,20 @@
Canvas.ZIndex="0"
EmptyTextType="{x:Bind ParentShellPageInstance.FilesystemViewModel.EmptyTextType, Mode=OneWay}" />

<StackPanel
x:Name="SearchUnindexedItemsPanel"
HorizontalAlignment="Center"
VerticalAlignment="Bottom"
x:Load="{x:Bind InstanceViewModel.ShowSearchUnindexedItemsMessage, Mode=OneWay}"
Orientation="Vertical">
<TextBlock Text="{helpers:ResourceString Name=SearchUnindexedItemsLabel/Text}" />
<HyperlinkButton
x:Name="SearchUnindexedItemsButton"
HorizontalAlignment="Center"
Command="{x:Bind CommandsViewModel.SearchUnindexedItems}"
Content="{helpers:ResourceString Name=SearchUnindexedItemsButton/Content}" />
</StackPanel>

<TeachingTip
x:Name="FileNameTeachingTip"
CloseButtonContent="{helpers:ResourceString Name=FileNameTeachingTip/CloseButtonContent}"
Expand Down Expand Up @@ -877,20 +891,6 @@
<ItemsStackPanel AreStickyGroupHeadersEnabled="False" Orientation="Vertical" />
</ItemsPanelTemplate>
</ListView.ItemsPanel>
<ListView.Footer>
<StackPanel
x:Name="SearchUnindexedItemsPanel"
HorizontalAlignment="Stretch"
x:Load="{x:Bind InstanceViewModel.ShowSearchUnindexedItemsMessage, Mode=OneWay}"
Orientation="Vertical">
<TextBlock HorizontalTextAlignment="Center" Text="{helpers:ResourceString Name=SearchUnindexedItemsLabel/Text}" />
<HyperlinkButton
x:Name="SearchUnindexedItemsButton"
HorizontalAlignment="Center"
Command="{x:Bind CommandsViewModel.SearchUnindexedItems}"
Content="{helpers:ResourceString Name=SearchUnindexedItemsButton/Content}" />
</StackPanel>
</ListView.Footer>
</ListView>
</SemanticZoom.ZoomedInView>

Expand Down

0 comments on commit 3d3e3fb

Please sign in to comment.