Change favorite/reblog action order to match Mastodon
This commit is contained in:
parent
f6831ec02b
commit
f2f6eb81f7
|
@ -210,13 +210,13 @@ class ConversationMainStatusCollectionViewCell: UICollectionViewListCell, Status
|
|||
}
|
||||
|
||||
private var actionButtons: [UIButton] {
|
||||
[replyButton, favoriteButton, reblogButton, moreButton]
|
||||
[replyButton, reblogButton, favoriteButton, moreButton]
|
||||
}
|
||||
|
||||
private lazy var actionsHStack = UIStackView(arrangedSubviews: [
|
||||
replyButton,
|
||||
favoriteButton,
|
||||
reblogButton,
|
||||
favoriteButton,
|
||||
moreButton,
|
||||
]).configure {
|
||||
$0.axis = .horizontal
|
||||
|
|
|
@ -217,15 +217,15 @@ class TimelineStatusCollectionViewCell: UICollectionViewListCell, StatusCollecti
|
|||
replyButton.topAnchor.constraint(equalTo: $0.topAnchor),
|
||||
replyButton.bottomAnchor.constraint(equalTo: $0.bottomAnchor),
|
||||
|
||||
favoriteButton.leadingAnchor.constraint(equalTo: replyButton.trailingAnchor),
|
||||
favoriteButton.topAnchor.constraint(equalTo: $0.topAnchor),
|
||||
favoriteButton.bottomAnchor.constraint(equalTo: $0.bottomAnchor),
|
||||
|
||||
reblogButton.leadingAnchor.constraint(equalTo: favoriteButton.trailingAnchor),
|
||||
reblogButton.leadingAnchor.constraint(equalTo: replyButton.trailingAnchor),
|
||||
reblogButton.topAnchor.constraint(equalTo: $0.topAnchor),
|
||||
reblogButton.bottomAnchor.constraint(equalTo: $0.bottomAnchor),
|
||||
|
||||
moreButton.leadingAnchor.constraint(equalTo: reblogButton.trailingAnchor),
|
||||
favoriteButton.leadingAnchor.constraint(equalTo: reblogButton.trailingAnchor),
|
||||
favoriteButton.topAnchor.constraint(equalTo: $0.topAnchor),
|
||||
favoriteButton.bottomAnchor.constraint(equalTo: $0.bottomAnchor),
|
||||
|
||||
moreButton.leadingAnchor.constraint(equalTo: favoriteButton.trailingAnchor),
|
||||
moreButton.trailingAnchor.constraint(equalTo: $0.trailingAnchor),
|
||||
moreButton.topAnchor.constraint(equalTo: $0.topAnchor),
|
||||
moreButton.bottomAnchor.constraint(equalTo: $0.bottomAnchor),
|
||||
|
|
Loading…
Reference in New Issue