Fix for To/Cc/Bcc alignment and crush when opening eml (#449)
* Add margin to To/Cc/Bcc * Fix crash when opening eml * Remove useless top
This commit is contained in:
@@ -467,7 +467,7 @@ namespace Wino.Mail.ViewModels
|
||||
?? new AccountContact() { Name = mailboxAddress.Name, Address = mailboxAddress.Address };
|
||||
|
||||
// Make sure that user account first in the list.
|
||||
if (foundContact.Address == initializedMailItemViewModel.AssignedAccount.Address)
|
||||
if (foundContact.Address == initializedMailItemViewModel?.AssignedAccount?.Address)
|
||||
{
|
||||
accounts.Insert(0, foundContact);
|
||||
}
|
||||
|
||||
@@ -277,6 +277,7 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock
|
||||
Margin="0,1,0,0"
|
||||
VerticalAlignment="Top"
|
||||
FontWeight="SemiBold"
|
||||
Text="{x:Bind domain:Translator.ComposerTo}"
|
||||
@@ -300,6 +301,7 @@
|
||||
<ColumnDefinition Width="*" />
|
||||
</Grid.ColumnDefinitions>
|
||||
<TextBlock
|
||||
Margin="0,1,0,0"
|
||||
VerticalAlignment="Top"
|
||||
FontWeight="SemiBold"
|
||||
Text="Cc:"
|
||||
@@ -323,6 +325,7 @@
|
||||
</Grid.ColumnDefinitions>
|
||||
|
||||
<TextBlock
|
||||
Margin="0,1,0,0"
|
||||
VerticalAlignment="Top"
|
||||
FontWeight="SemiBold"
|
||||
Text="Bcc:"
|
||||
|
||||
Reference in New Issue
Block a user