mirror of
https://github.com/bitwarden/mobile.git
synced 2024-11-23 11:45:38 +01:00
adjust sizes of buttons. Use modals on android
This commit is contained in:
parent
7c856d08c4
commit
9879f7fa0a
@ -109,8 +109,8 @@ namespace Bit.App.Pages
|
||||
{
|
||||
// NOTE: This is going to cause problems with i18n strings since various languages have difference string sizes
|
||||
PasswordCell.Button1.WidthRequest = 40;
|
||||
PasswordCell.Button2.WidthRequest = 55;
|
||||
UsernameCell.Button1.WidthRequest = 55;
|
||||
PasswordCell.Button2.WidthRequest = 59;
|
||||
UsernameCell.Button1.WidthRequest = 59;
|
||||
UriCell.Button1.WidthRequest = 75;
|
||||
}
|
||||
|
||||
|
@ -49,26 +49,12 @@ namespace Bit.App
|
||||
|
||||
public static async Task PushForDeviceAsync(this INavigation navigation, Page page)
|
||||
{
|
||||
if(Device.OS == TargetPlatform.iOS)
|
||||
{
|
||||
await navigation.PushModalAsync(new ExtendedNavigationPage(page), true);
|
||||
}
|
||||
else
|
||||
{
|
||||
await navigation.PushAsync(page, true);
|
||||
}
|
||||
await navigation.PushModalAsync(new ExtendedNavigationPage(page), true);
|
||||
}
|
||||
|
||||
public static async Task PopForDeviceAsync(this INavigation navigation)
|
||||
{
|
||||
if(Device.OS == TargetPlatform.iOS)
|
||||
{
|
||||
await navigation.PopModalAsync(true);
|
||||
}
|
||||
else
|
||||
{
|
||||
await navigation.PopAsync(true);
|
||||
}
|
||||
await navigation.PopModalAsync(true);
|
||||
}
|
||||
|
||||
public static void AdjustMarginsForDevice(this View view)
|
||||
|
Loading…
Reference in New Issue
Block a user