From 26371499da7ddf0cc8bdd3185a995b829fd49d56 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Sat, 25 Mar 2017 11:39:13 -0400 Subject: [PATCH] Slightly tweak the appearance of the attachment upload progress bar. // FREEBIE --- Signal/src/Models/TSMessageAdapaters/AttachmentUploadView.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Signal/src/Models/TSMessageAdapaters/AttachmentUploadView.m b/Signal/src/Models/TSMessageAdapaters/AttachmentUploadView.m index cdbd55f64..539e4ba99 100644 --- a/Signal/src/Models/TSMessageAdapaters/AttachmentUploadView.m +++ b/Signal/src/Models/TSMessageAdapaters/AttachmentUploadView.m @@ -47,7 +47,8 @@ NS_ASSUME_NONNULL_BEGIN [superview.layer addSublayer:_maskLayer]; const CGFloat progressWidth = round(superview.frame.size.width * 0.45f); - const CGFloat progressHeight = round(progressWidth * 0.11f); + const CGFloat progressHeight = round(MIN(superview.frame.size.height * 0.5f, + progressWidth * 0.09f)); CGRect progressFrame = CGRectMake(round((superview.frame.size.width - progressWidth) * 0.5f), round((superview.frame.size.height - progressHeight) * 0.5f), progressWidth,