diff --git a/VoidLink/HostCardView.m b/VoidLink/HostCardView.m index 497b85ea..cfe45f99 100644 --- a/VoidLink/HostCardView.m +++ b/VoidLink/HostCardView.m @@ -50,13 +50,16 @@ static const float REFRESH_CYCLE = 2.0f; +- (BOOL)isIPhone{ + return ([UIDevice currentDevice].userInterfaceIdiom == UIUserInterfaceIdiomPhone); +} - (instancetype)initWithFrame:(CGRect)frame { self = [super initWithFrame:frame]; if (self) { buttonLabelFontSize = 15*_sizeFactor; longPressFired = false; - computerIconMonitorCenterYOffset = -4.3523*_sizeFactor; + computerIconMonitorCenterYOffset = [self isIPhone] ? -3.62*_sizeFactor : -4.175*_sizeFactor; iconAndButtonSpacing = 37*_sizeFactor; buttonHeight = 39*_sizeFactor; defaultBlue = [ThemeManager appPrimaryColor]; @@ -94,6 +97,8 @@ static const float REFRESH_CYCLE = 2.0f; } + + - (instancetype)initWithCoder:(NSCoder *)coder { self = [super initWithCoder:coder]; if (self) {