Skip to content

Commit 60a795e

Browse files
committed
Simplify DefaultPreview UI
1 parent 627dfb1 commit 60a795e

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

Flow.Launcher/DefaultPreview.xaml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,9 @@
1313
<RowDefinition Height="*" />
1414
<RowDefinition Height="Auto" />
1515
</Grid.RowDefinitions>
16-
<Grid Grid.Row="0" VerticalAlignment="Center">
17-
<Grid.RowDefinitions>
18-
<RowDefinition Height="Auto" />
19-
<RowDefinition Height="Auto" />
20-
</Grid.RowDefinitions>
16+
<StackPanel VerticalAlignment="Center">
2117
<TextBlock
2218
x:Name="PreviewGlyphIcon"
23-
Grid.Row="0"
2419
Height="Auto"
2520
Margin="0 16 0 0"
2621
FontFamily="{Binding Glyph.FontFamily}"
@@ -29,7 +24,6 @@
2924
Visibility="{Binding ShowGlyph}" />
3025
<Image
3126
x:Name="PreviewImageIcon"
32-
Grid.Row="0"
3327
MaxHeight="320"
3428
Margin="0 16 0 0"
3529
HorizontalAlignment="Center"
@@ -49,14 +43,13 @@
4943
</Image>
5044
<TextBlock
5145
x:Name="PreviewTitle"
52-
Grid.Row="1"
5346
Margin="0 6 0 16"
5447
HorizontalAlignment="Stretch"
5548
Style="{DynamicResource PreviewItemTitleStyle}"
5649
Text="{Binding Result.Title}"
5750
TextAlignment="Center"
5851
TextWrapping="Wrap" />
59-
</Grid>
52+
</StackPanel>
6053
<StackPanel Grid.Row="1">
6154
<StackPanel.Style>
6255
<Style TargetType="{x:Type StackPanel}">

0 commit comments

Comments
 (0)