mirror of
https://github.com/bitwarden/android.git
synced 2024-12-18 23:31:52 +03:00
adjust sizes of buttons. Use modals on android
This commit is contained in:
parent
7c856d08c4
commit
9879f7fa0a
2 changed files with 4 additions and 18 deletions
|
@ -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 a new issue