Various fixes

This commit is contained in:
Ilya Laktyushin
2022-09-05 21:12:19 +02:00
parent d7abd64ac4
commit 95aae5d35c
3 changed files with 8 additions and 4 deletions

View File

@@ -462,8 +462,8 @@ final class AuthorizationSequenceCodeEntryControllerNode: ASDisplayNode, UITextF
if let (layout, _) = self.layoutArguments {
let errorTextSize = self.errorTextNode.updateLayout(CGSize(width: layout.size.width - 48.0, height: .greatestFiniteMagnitude))
self.errorTextNode.frame = CGRect(origin: CGPoint(x: floorToScreenPixels((layout.size.width - errorTextSize.width) / 2.0), y: self.codeInputView.frame.maxY + 28.0), size: errorTextSize)
let yOffset: CGFloat = layout.size.width > 320.0 ? 28.0 : 15.0
self.errorTextNode.frame = CGRect(origin: CGPoint(x: floorToScreenPixels((layout.size.width - errorTextSize.width) / 2.0), y: self.codeInputView.frame.maxY + yOffset), size: errorTextSize)
}
self.errorTextNode.alpha = 1.0
self.errorTextNode.layer.animateAlpha(from: 0.0, to: 1.0, duration: 0.15)