Skip to content

Commit e19890e

Browse files
authored
Feature: Wrap file names in the grid layout (#10972)
1 parent f77180f commit e19890e

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@
180180
VerticalAlignment="Stretch"
181181
Opacity="{Binding IsOpen, ElementName=EditPopup, Converter={StaticResource NegatedBoolToOpacityConverter}}"
182182
Text="{x:Bind Name, Mode=OneWay}"
183+
TextAlignment="Center"
183184
TextTrimming="CharacterEllipsis"
184185
TextWrapping="Wrap" />
185186
</Grid>
@@ -584,11 +585,12 @@
584585
</GroupStyle>
585586
</controls:AdaptiveGridView.GroupStyle>
586587

587-
<controls:AdaptiveGridView.ItemContainerTransitions>
588-
<TransitionCollection>
589-
<AddDeleteThemeTransition />
590-
</TransitionCollection>
591-
</controls:AdaptiveGridView.ItemContainerTransitions>
588+
<!-- Wraps items without affecting the height of other rows -->
589+
<ItemsControl.ItemsPanel>
590+
<ItemsPanelTemplate>
591+
<controls:WrapPanel/>
592+
</ItemsPanelTemplate>
593+
</ItemsControl.ItemsPanel>
592594

593595
<controls:AdaptiveGridView.Resources>
594596
<ResourceDictionary>

0 commit comments

Comments
 (0)