Fix formating issues and styles

This commit is contained in:
Aleh Khantsevich
2024-05-05 17:41:49 +02:00
parent 74cdf09ebc
commit 00fa2ca804
2 changed files with 5 additions and 11 deletions

View File

@@ -60,8 +60,7 @@
Height="50"
Background="Transparent"
ColumnSpacing="3"
Margin="-8 0"
Padding="0,0,5,0">
Margin="-8,0,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="36" />
<ColumnDefinition Width="*" />
@@ -101,7 +100,6 @@
<SymbolIcon
Grid.Column="2"
Margin="0,0,0,0"
VerticalAlignment="Center"
Symbol="Cancel"
Foreground="{StaticResource DeleteBrush}" />
@@ -607,7 +605,6 @@
<!-- Attachments -->
<ListView x:Name="AttachmentsListView"
Grid.Row="6"
Padding="5"
Grid.ColumnSpan="2"
x:Load="{x:Bind helpers:XamlHelpers.CountToBooleanConverter(ViewModel.IncludedAttachments.Count), Mode=OneWay}"
IsItemClickEnabled="True"

View File

@@ -62,18 +62,17 @@
<!-- Attachment Template -->
<!-- Margin -8 0 is used to remove the padding from the ListViewItem-->
<DataTemplate x:Key="FileAttachmentTemplate" x:DataType="viewModelData:MailAttachmentViewModel">
<Grid Height="51" RowSpacing="0">
<Grid Height="51">
<Grid.RowDefinitions>
<RowDefinition Height="50" />
<RowDefinition Height="5" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid
Grid.Row="0"
Height="50"
Background="Transparent"
ColumnSpacing="3"
Padding="0,0,5,0"
Margin="-8 0">
Margin="-8,0,0,0">
<ToolTipService.ToolTip>
<ToolTip Content="{x:Bind FileName}" />
</ToolTipService.ToolTip>
@@ -111,7 +110,6 @@
<!-- Name && Size -->
<Grid Grid.Column="1"
VerticalAlignment="Center"
Padding="0,0,5,0"
MaxWidth="200">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
@@ -127,7 +125,6 @@
<TextBlock
Grid.Row="1"
Margin="0,2,0,0"
HorizontalAlignment="Right"
VerticalAlignment="Bottom"
FontSize="11"
@@ -139,7 +136,7 @@
Grid.Row="1"
VerticalAlignment="Top"
HorizontalAlignment="Stretch"
Margin="0, -5, 0,0"
Margin="0,-5,0,0"
Visibility="{x:Bind IsBusy, Mode=OneWay}"
IsIndeterminate="{x:Bind IsBusy, Mode=OneWay}"
ShowPaused="False"