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 };
|
?? new AccountContact() { Name = mailboxAddress.Name, Address = mailboxAddress.Address };
|
||||||
|
|
||||||
// Make sure that user account first in the list.
|
// 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);
|
accounts.Insert(0, foundContact);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -277,6 +277,7 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<TextBlock
|
<TextBlock
|
||||||
|
Margin="0,1,0,0"
|
||||||
VerticalAlignment="Top"
|
VerticalAlignment="Top"
|
||||||
FontWeight="SemiBold"
|
FontWeight="SemiBold"
|
||||||
Text="{x:Bind domain:Translator.ComposerTo}"
|
Text="{x:Bind domain:Translator.ComposerTo}"
|
||||||
@@ -300,6 +301,7 @@
|
|||||||
<ColumnDefinition Width="*" />
|
<ColumnDefinition Width="*" />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock
|
<TextBlock
|
||||||
|
Margin="0,1,0,0"
|
||||||
VerticalAlignment="Top"
|
VerticalAlignment="Top"
|
||||||
FontWeight="SemiBold"
|
FontWeight="SemiBold"
|
||||||
Text="Cc:"
|
Text="Cc:"
|
||||||
@@ -323,6 +325,7 @@
|
|||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<TextBlock
|
<TextBlock
|
||||||
|
Margin="0,1,0,0"
|
||||||
VerticalAlignment="Top"
|
VerticalAlignment="Top"
|
||||||
FontWeight="SemiBold"
|
FontWeight="SemiBold"
|
||||||
Text="Bcc:"
|
Text="Bcc:"
|
||||||
|
|||||||
Reference in New Issue
Block a user