Skip to content

Commit f1628ee

Browse files
committed
Add MaxHeight & MaxWidth for preview image
1 parent 9f8ff12 commit f1628ee

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

Plugins/Flow.Launcher.Plugin.Explorer/Views/PreviewPanel.xaml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,10 @@
2121
</Grid.RowDefinitions>
2222
<Image
2323
Grid.Row="0"
24+
MaxWidth="96"
25+
MaxHeight="96"
2426
Margin="5 12 8 0"
25-
Source="{Binding PreviewImage, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl}}">
26-
<Image.Style>
27-
<Style TargetType="Image">
28-
<Style.Triggers>
29-
<DataTrigger Binding="{Binding UseBigThumbnail}" Value="False">
30-
<Setter Property="MaxWidth" Value="96" />
31-
<Setter Property="MaxHeight" Value="96" />
32-
</DataTrigger>
33-
</Style.Triggers>
34-
</Style>
35-
</Image.Style>
36-
</Image>
27+
Source="{Binding PreviewImage, RelativeSource={RelativeSource Mode=FindAncestor, AncestorType=UserControl}}" />
3728
<Grid Grid.Row="1">
3829
<TextBlock
3930
Margin="5 6 5 16"

0 commit comments

Comments
 (0)