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:
parent
1a4ba36820
commit
5a3d86a12a
@ -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;
|
||||
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 New Issue
Block a user