Skip to content

Commit f88c428

Browse files
committed
Improve
1 parent 28ffaf3 commit f88c428

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

src/Files.App/UserControls/Pane/ShelfPane.xaml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,25 @@
1616

1717
<Grid
1818
Width="240"
19-
Padding="12"
2019
AllowDrop="True"
2120
Background="{ThemeResource App.Theme.InfoPane.BackgroundBrush}"
2221
BackgroundSizing="InnerBorderEdge"
2322
BorderBrush="{ThemeResource CardStrokeColorDefaultBrush}"
2423
BorderThickness="1"
2524
CornerRadius="8"
2625
DragOver="Shelf_DragOver"
27-
Drop="Shelf_Drop"
28-
RowSpacing="8">
26+
Drop="Shelf_Drop">
2927

3028
<Grid.RowDefinitions>
3129
<RowDefinition Height="Auto" />
3230
<RowDefinition Height="*" />
3331
<RowDefinition Height="Auto" />
3432
</Grid.RowDefinitions>
3533

36-
<StackPanel Grid.Row="0" Spacing="8">
34+
<StackPanel
35+
Grid.Row="0"
36+
Padding="12,12,12,4"
37+
Spacing="8">
3738

3839
<!-- Title -->
3940
<TextBlock
@@ -50,7 +51,9 @@
5051
<!-- Items List -->
5152
<ListView
5253
Grid.Row="1"
54+
Padding="8,4,8,4"
5355
DragItemsStarting="ListView_DragItemsStarting"
56+
ItemContainerTransitions="{x:Null}"
5457
ItemsSource="{x:Bind ItemsSource, Mode=OneWay}"
5558
ScrollViewer.VerticalScrollBarVisibility="Auto"
5659
ScrollViewer.VerticalScrollMode="Auto"
@@ -96,7 +99,10 @@
9699
</ListView>
97100

98101

99-
<StackPanel Grid.Row="2" Spacing="4">
102+
<StackPanel
103+
Grid.Row="2"
104+
Padding="12,12,12,4"
105+
Spacing="4">
100106

101107
<!-- (Divider) -->
102108
<Border Height="1" Background="{ThemeResource DividerStrokeColorDefaultBrush}" />

src/Files.App/Views/MainPage.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@
252252
<uc:ShelfPane
253253
x:Name="ShelfPane"
254254
Grid.Row="0"
255-
Grid.RowSpan="2"
255+
Grid.RowSpan="5"
256256
Grid.Column="3"
257-
Margin="4,0,0,0"
257+
Margin="4,0,0,4"
258258
x:Load="{x:Bind ViewModel.ShowShelfPane, Mode=OneWay}" />
259259
</Grid>
260260
</sidebar:SidebarView.InnerContent>

0 commit comments

Comments
 (0)