mirror of
https://github.com/bitwarden/android.git
synced 2024-10-31 23:25:45 +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
|
||||
// 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");
|
||||
|
|
Loading…
Reference in a new issue