Skip to content

Commit

Permalink
Merge pull request #46 from insomniachi/make-tiles-smaller
Browse files Browse the repository at this point in the history
Make the model tiles slightly smaller
  • Loading branch information
niels9001 authored Dec 9, 2024
2 parents 69b7193 + c716607 commit a460a74
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions AIDevGallery/Pages/AddModelPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -69,21 +69,23 @@
</Grid>

<ScrollViewer Grid.Row="1" Padding="24,0,24,0">
<ItemsRepeater
Grid.Row="1"
Margin="0,24,0,24"
ItemsSource="{x:Bind results}"
<ItemsRepeater
Margin="0 24 0 24"
ItemsSource="{x:Bind results, Mode=OneWay}"
TabFocusNavigation="Local">
<ItemsRepeater.Layout>
<UniformGridLayout MinColumnSpacing="16" MinRowSpacing="32" />
<UniformGridLayout
MinColumnSpacing="16"
MinRowSpacing="32"
ItemsStretch="Fill"
MinItemWidth="282"
MinItemHeight="286"/>
</ItemsRepeater.Layout>
<ItemsRepeater.ItemTemplate>
<DataTemplate x:DataType="local:Result">
<Grid
Width="324"
Height="286"
Padding="24"
RowSpacing="8"
<Grid
Padding="24"
RowSpacing="8"
Style="{StaticResource CardGridStyle}">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
Expand Down Expand Up @@ -119,10 +121,6 @@
<TextBlock Text="{x:Bind utils:AppUtils.FileSizeToString(Details.Size)}" />
</StackPanel>

<!--<TextBlock Foreground="{ThemeResource TextFillColorSecondaryBrush}" Style="{StaticResource CaptionTextBlockStyle}">
<Run FontFamily="{StaticResource SymbolThemeFontFamily}" Text="&#xEF40;" />
<Run Text="{x:Bind SearchResult.HardwareAccelerator}" />
</TextBlock>-->
<StackPanel
Grid.Row="4"
Orientation="Horizontal"
Expand Down

0 comments on commit a460a74

Please sign in to comment.