1
0
mirror of https://github.com/bitwarden/mobile.git synced 2024-11-27 12:26:31 +01:00

Only adjust insets on phone devices

This commit is contained in:
kspearrin 2018-04-07 11:32:01 -04:00
parent 1a4ba36820
commit 5a3d86a12a

View File

@ -58,7 +58,10 @@ namespace Bit.iOS.Controls
// Only show icon
// ref: https://stackoverflow.com/questions/26494130/remove-tab-bar-item-text-show-only-image
item.Title = string.Empty;
item.ImageInsets = new UIEdgeInsets(6, 0, -6, 0);
if(UIDevice.CurrentDevice.UserInterfaceIdiom == UIUserInterfaceIdiom.Phone)
{
item.ImageInsets = new UIEdgeInsets(6, 0, -6, 0);
}
// Set selected icon
icon = string.Concat(icon, "_selected");