Various fixes

This commit is contained in:
Ilya Laktyushin
2022-11-10 00:09:15 +04:00
parent c0248b4ac5
commit 01ad3d848f
2 changed files with 28 additions and 18 deletions

View File

@@ -592,7 +592,7 @@ public final class ListMessageSnippetItemNode: ListMessageNode {
var contentHeight = 9.0 + titleNodeLayout.size.height + 10.0 + descriptionNodeLayout.size.height + linkNodeLayout.size.height
if !authorString.isEmpty {
contentHeight += authorNodeLayout.height
contentHeight += authorNodeLayout.height - 4.0
}
var insets = UIEdgeInsets()
@@ -676,7 +676,7 @@ public final class ListMessageSnippetItemNode: ListMessageNode {
let _ = linkNodeApply()
let _ = authorNodeApply()
transition.updateFrame(node: strongSelf.authorNode, frame: CGRect(origin: CGPoint(x: leftOffset + leftInset, y: linkFrame.maxY + 1.0), size: authorNodeLayout))
transition.updateFrame(node: strongSelf.authorNode, frame: CGRect(origin: CGPoint(x: leftOffset + leftInset - 1.0, y: linkFrame.maxY - 1.0), size: authorNodeLayout))
strongSelf.authorNode.isHidden = authorString.isEmpty
if let image = instantViewImage {