Various fixes

This commit is contained in:
Ilya Laktyushin
2022-11-07 17:34:04 +04:00
parent 5069754694
commit 6f08efd8ae
15 changed files with 186 additions and 142 deletions

View File

@@ -718,7 +718,7 @@ public final class ChatTitleView: UIView, NavigationBarTitleView {
if self.titleRightIconNode.supernode == nil {
self.titleTextNode.addSubnode(self.titleRightIconNode)
}
rightIconWidth = image.size.width + 3.0
rightIconWidth = max(24.0, image.size.width) + 3.0
} else if self.titleRightIconNode.supernode != nil {
self.titleRightIconNode.removeFromSupernode()
}