Change unread mentions indicator text.

Signed-off-by: Ivan Sein <ivan@nextcloud.com>
This commit is contained in:
Ivan Sein 2021-10-07 15:50:10 +02:00
Родитель ebc37c0334
Коммит aad3c87540
1 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -132,7 +132,8 @@ typedef void (^FetchRoomsCompletionBlock)(BOOL success);
_unreadMentionsBottomButton.titleLabel.numberOfLines = 1;
_unreadMentionsBottomButton.titleLabel.adjustsFontSizeToFitWidth = YES;
NSString *buttonText = NSLocalizedString(@"↓ More mentions", nil);
NSString *unreadMentionsString = NSLocalizedString(@"Unread mentions", nil);
NSString *buttonText = [NSString stringWithFormat:@"↓ %@", unreadMentionsString];
NSDictionary *attributes = @{NSFontAttributeName: [UIFont systemFontOfSize:14]};
CGRect textSize = [buttonText boundingRectWithSize:CGSizeMake(300, 28) options:NSStringDrawingUsesLineFragmentOrigin attributes:attributes context:NULL];
CGFloat buttonWidth = textSize.size.width + 20;