@@ -26,7 +26,7 @@ final class NotificationCell: SelectableCell, CAAnimationDelegate {
2626 )
2727 public static let topInset = Styles . Sizes. rowSpacing
2828 public static let headerHeight = ceil ( Styles . Text. secondary. preferredFont. lineHeight)
29- public static let actionsHeight = Styles . Sizes. gutter + 4 * Styles . Sizes . rowSpacing
29+ public static let actionsHeight = Styles . Sizes. buttonMin . height
3030
3131 private weak var delegate : NotificationCellDelegate ?
3232 private let iconImageView = UIImageView ( )
@@ -102,30 +102,34 @@ final class NotificationCell: SelectableCell, CAAnimationDelegate {
102102 commentButton. setImage ( UIImage ( named: " comment-small " ) . withRenderingMode ( . alwaysTemplate) , for: . normal)
103103 commentButton. contentHorizontalAlignment = . left
104104 commentButton. snp. makeConstraints { make in
105- make. width. equalTo ( actionsHeight)
105+ make. height. equalTo ( actionsHeight)
106+ make. width. equalTo ( commentButton. snp. height)
106107 }
107108
108109 watchButton. tintColor = grey
109110 watchButton. addTarget ( self , action: #selector( onWatch ( sender: ) ) , for: . touchUpInside)
110111 watchButton. contentHorizontalAlignment = . center
111112 watchButton. snp. makeConstraints { make in
112- make. width. equalTo ( actionsHeight)
113+ make. height. equalTo ( actionsHeight)
114+ make. width. equalTo ( watchButton. snp. height)
113115 }
114116
115117 readButton. tintColor = grey
116118 readButton. setImage ( UIImage ( named: " check-small " ) . withRenderingMode ( . alwaysTemplate) , for: . normal)
117119 readButton. addTarget ( self , action: #selector( onRead ( sender: ) ) , for: . touchUpInside)
118120 readButton. contentHorizontalAlignment = . center
119121 readButton. snp. makeConstraints { make in
120- make. width. equalTo ( actionsHeight)
122+ make. height. equalTo ( actionsHeight)
123+ make. width. equalTo ( readButton. snp. height)
121124 }
122125
123126 moreButton. tintColor = grey
124127 moreButton. setImage ( UIImage ( named: " bullets-small " ) . withRenderingMode ( . alwaysTemplate) , for: . normal)
125128 moreButton. addTarget ( self , action: #selector( onMore ( sender: ) ) , for: . touchUpInside)
126129 moreButton. contentHorizontalAlignment = . right
127130 moreButton. snp. makeConstraints { make in
128- make. width. equalTo ( actionsHeight)
131+ make. height. equalTo ( actionsHeight)
132+ make. width. equalTo ( moreButton. snp. height)
129133 }
130134
131135 contentView. addBorder ( . bottom, left: inset. left)
0 commit comments