File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
WordPress/Classes/ViewRelated/Post/Views Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ final class AuthorFilterButton: UIControl {
65
65
private func commonInit( ) {
66
66
addSubview ( authorImageView)
67
67
NSLayoutConstraint . activate ( [
68
- authorImageView. leadingAnchor . constraint ( equalTo: leadingAnchor , constant : Metrics . leadingPadding ) ,
68
+ authorImageView. centerXAnchor . constraint ( equalTo: centerXAnchor ) ,
69
69
authorImageView. centerYAnchor. constraint ( equalTo: centerYAnchor) ,
70
70
authorImageView. widthAnchor. constraint ( equalToConstant: Metrics . gravatarSize. width) ,
71
71
authorImageView. heightAnchor. constraint ( equalToConstant: Metrics . gravatarSize. height) ,
@@ -82,7 +82,6 @@ final class AuthorFilterButton: UIControl {
82
82
private enum Metrics {
83
83
static let contentSize = CGSize ( width: 44.0 , height: 44.0 )
84
84
static let gravatarSize = CGSize ( width: 28.0 , height: 28.0 )
85
- static let leadingPadding : CGFloat = 12.0
86
85
}
87
86
}
88
87
You can’t perform that action at this time.
0 commit comments