mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Ensure unread badges in home view are always at least a circle.
This commit is contained in:
parent
b07de266c6
commit
908d6dfd78
|
@ -251,11 +251,12 @@ NS_ASSUME_NONNULL_BEGIN
|
|||
OWSAssertDebug(UIFont.ows_dynamicTypeBodyFont.pointSize != 17 || minMargin == 12);
|
||||
|
||||
[self.viewConstraints addObjectsFromArray:@[
|
||||
// badge sizing
|
||||
[self.unreadBadge autoMatchDimension:ALDimensionWidth
|
||||
toDimension:ALDimensionWidth
|
||||
ofView:self.unreadLabel
|
||||
withOffset:minMargin],
|
||||
// badge sizing
|
||||
withOffset:minMargin
|
||||
relation:NSLayoutRelationGreaterThanOrEqual],
|
||||
[self.unreadBadge autoSetDimension:ALDimensionWidth
|
||||
toSize:unreadBadgeHeight
|
||||
relation:NSLayoutRelationGreaterThanOrEqual],
|
||||
|
|
Loading…
Reference in a new issue