1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2024-12-17 03:09:19 +01:00

chore: Update translated footer alignment

This commit is contained in:
Marcus Kida 2022-12-07 17:10:32 +01:00
parent da3c9a42ec
commit fda3ae1516
No known key found for this signature in database
GPG Key ID: 19FF64E08013CA40

View File

@ -208,7 +208,7 @@ public final class StatusView: UIView {
}
NSLayoutConstraint.activate([
containerView.heightAnchor.constraint(equalToConstant: 20),
containerView.heightAnchor.constraint(equalToConstant: 24),
translatedInfoLabel.centerYAnchor.constraint(equalTo: containerView.centerYAnchor),
translatedInfoLabel.leadingAnchor.constraint(equalTo: containerView.leadingAnchor, constant: 16),
revertButton.topAnchor.constraint(equalTo: containerView.topAnchor),
@ -469,6 +469,10 @@ extension StatusView.Style {
statusView.pollStatusDotLabel.setContentHuggingPriority(.defaultHigh + 1, for: .horizontal)
statusView.pollCountdownLabel.setContentHuggingPriority(.defaultLow, for: .horizontal)
statusView.pollVoteButton.setContentHuggingPriority(.defaultHigh + 3, for: .horizontal)
// translated info
statusView.containerStackView.addArrangedSubview(statusView.isTranslatingLoadingView)
statusView.containerStackView.addArrangedSubview(statusView.translatedInfoView)
// action toolbar
statusView.actionToolbarAdaptiveMarginContainerView.contentView = statusView.actionToolbarContainer
@ -483,10 +487,6 @@ extension StatusView.Style {
statusView.filterHintLabel.centerXAnchor.constraint(equalTo: statusView.containerStackView.centerXAnchor),
statusView.filterHintLabel.centerYAnchor.constraint(equalTo: statusView.containerStackView.centerYAnchor),
])
// translated info
statusView.containerStackView.addArrangedSubview(statusView.isTranslatingLoadingView)
statusView.containerStackView.addArrangedSubview(statusView.translatedInfoView)
}
func inline(statusView: StatusView) {