|
13 | 13 | xmlns:bindableembeds="using:Quarrel.Bindables.Messages.Embeds" |
14 | 14 | xmlns:mselector="using:Quarrel.Selectors.Messages" |
15 | 15 | xmlns:markdown="using:Quarrel.Markdown"> |
16 | | - |
| 16 | + |
17 | 17 | <SolidColorBrush x:Key="AttachmentBackgroundBrush" Color="#1E1E1E"/> |
18 | 18 | <SolidColorBrush x:Key="AttachmentBorderBrush" Color="#3C3C3C"/> |
19 | 19 |
|
|
25 | 25 | <Grid.ColumnDefinitions> |
26 | 26 | <ColumnDefinition Width="Auto"/> |
27 | 27 | <ColumnDefinition Width="Auto"/> |
| 28 | + <ColumnDefinition Width="Auto"/> |
28 | 29 | </Grid.ColumnDefinitions> |
29 | | - <FontIcon x:Name="FileIcon" FontSize="36" Glyph="{x:Bind aconvert:AttachmentIconConverter.Convert(FileExtension)}" HorizontalAlignment="Left" Margin="0,0,6,0"/> |
30 | | - <StackPanel Grid.Column="1"> |
31 | | - <HyperlinkButton Content="{x:Bind Attachment.Filename}" NavigateUri="{x:Bind Attachment.ProxyUrl}" FontSize="18" Padding="0" Style="{StaticResource PlainTextHyperlinkStyle}"/> |
32 | | - <TextBlock Text="{x:Bind aconvert:HumanizeByteSizeConverter.Convert(Attachment.Size)}" FontSize="11" Opacity="0.5" Margin="0,-2,0,0"/> |
| 30 | + |
| 31 | + <!--File icon--> |
| 32 | + <HyperlinkButton NavigateUri="{x:Bind Attachment.Url}" |
| 33 | + HorizontalAlignment="Left"> |
| 34 | + <FontIcon Glyph="{x:Bind aconvert:AttachmentIconConverter.Convert(FileExtension)}" FontSize="32"/> |
| 35 | + </HyperlinkButton> |
| 36 | + |
| 37 | + <!--File name and size--> |
| 38 | + <StackPanel Margin="6,0,12,0" Grid.Column="1"> |
| 39 | + <HyperlinkButton Content="{x:Bind Attachment.Filename}" Padding="0" |
| 40 | + NavigateUri="{x:Bind Attachment.Url}" FontSize="18" |
| 41 | + Style="{StaticResource PlainTextHyperlinkStyle}"/> |
| 42 | + |
| 43 | + <TextBlock Text="{x:Bind aconvert:HumanizeByteSizeConverter.Convert(Attachment.Size)}" |
| 44 | + FontSize="11" Opacity="0.5" Margin="0,-2,0,0"/> |
33 | 45 | </StackPanel> |
| 46 | + |
| 47 | + <!--Download button--> |
| 48 | + <HyperlinkButton NavigateUri="{x:Bind Attachment.Url}" Grid.Column="2"> |
| 49 | + <FontIcon Glyph="" FontSize="24"/> |
| 50 | + </HyperlinkButton> |
34 | 51 | </Grid> |
35 | 52 | </DataTemplate> |
36 | 53 |
|
|
0 commit comments