1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-09-16 02:17:10 +02:00

Login page fixes (#193)

* App: LoginPage.cs: Correct the Windows device specifier

The WinPhone device specifier doesn't correctly take effect, use the
Windows decvice instead.

Signed-off-by: Alistair Francis <alistair@alistair23.me>

* App: LoginPage.cs: Fix the FormEntryCell imageSource

The images don't appear (at least on UWP) without the file extension.

Signed-off-by: Alistair Francis <alistair@alistair23.me>
This commit is contained in:
Alistair Francis 2017-12-06 07:26:30 -08:00 committed by Kyle Spearrin
parent 056bce3dd9
commit 040dc72877

View File

@ -45,12 +45,12 @@ namespace Bit.App.Pages
var padding = Helpers.OnPlatform(
iOS: new Thickness(15, 20),
Android: new Thickness(15, 8),
WinPhone: new Thickness(15, 20));
Windows: new Thickness(10, 8));
PasswordCell = new FormEntryCell(AppResources.MasterPassword, isPassword: true,
useLabelAsPlaceholder: true, imageSource: "lock", containerPadding: padding);
useLabelAsPlaceholder: true, imageSource: "lock.png", containerPadding: padding);
EmailCell = new FormEntryCell(AppResources.EmailAddress, nextElement: PasswordCell.Entry,
entryKeyboard: Keyboard.Email, useLabelAsPlaceholder: true, imageSource: "envelope",
entryKeyboard: Keyboard.Email, useLabelAsPlaceholder: true, imageSource: "envelope.png",
containerPadding: padding);
var lastLoginEmail = _settings.GetValueOrDefault(Constants.LastLoginEmail, string.Empty);
@ -97,7 +97,7 @@ namespace Bit.App.Pages
var layout = new StackLayout
{
Children = { table, forgotPasswordButton },
Spacing = Helpers.OnPlatform(iOS: 0, Android: 10, WinPhone: 0)
Spacing = Helpers.OnPlatform(iOS: 0, Android: 10, Windows: 0)
};
var scrollView = new ScrollView { Content = layout };