Fix margins

This commit is contained in:
Niels Andriesse 2021-02-26 14:11:58 +11:00
parent b98fb13c3f
commit 7289c5064a
1 changed files with 2 additions and 6 deletions

View File

@ -53,11 +53,7 @@ final class InputView : UIView, InputViewButtonDelegate, InputTextViewDelegate,
private lazy var inputTextView = InputTextView(delegate: self)
private lazy var additionalContentContainer: UIView = {
let result = UIView()
result.heightAnchor.constraint(greaterThanOrEqualToConstant: 4).isActive = true
return result
}()
private lazy var additionalContentContainer = UIView()
// MARK: Settings
private static let linkPreviewViewInset: CGFloat = 6
@ -108,7 +104,7 @@ final class InputView : UIView, InputViewButtonDelegate, InputTextViewDelegate,
addSubview(mainStackView)
mainStackView.pin(.top, to: .bottom, of: separator)
mainStackView.pin([ UIView.HorizontalEdge.leading, UIView.HorizontalEdge.trailing ], to: self)
mainStackView.pin(.bottom, to: .bottom, of: self, withInset: -2)
mainStackView.pin(.bottom, to: .bottom, of: self)
// Mentions
insertSubview(mentionsViewContainer, belowSubview: mainStackView)
mentionsViewContainer.pin([ UIView.HorizontalEdge.left, UIView.HorizontalEdge.right ], to: self)