mirror of
https://github.com/bitwarden/android.git
synced 2024-11-01 07:35:52 +03:00
Only adjust insets on phone devices
This commit is contained in:
parent
1a4ba36820
commit
5a3d86a12a
1 changed files with 4 additions and 1 deletions
|
@ -58,7 +58,10 @@ namespace Bit.iOS.Controls
|
||||||
// Only show icon
|
// Only show icon
|
||||||
// ref: https://stackoverflow.com/questions/26494130/remove-tab-bar-item-text-show-only-image
|
// ref: https://stackoverflow.com/questions/26494130/remove-tab-bar-item-text-show-only-image
|
||||||
item.Title = string.Empty;
|
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
|
// Set selected icon
|
||||||
icon = string.Concat(icon, "_selected");
|
icon = string.Concat(icon, "_selected");
|
||||||
|
|
Loading…
Reference in a new issue