Various Improvements

This commit is contained in:
Ilya Laktyushin
2021-03-20 16:13:57 +05:00
parent cd6af7d537
commit 498dd0bbec
43 changed files with 792 additions and 231 deletions

View File

@@ -225,7 +225,7 @@ private final class NavigationButtonItemNode: ImmediateTextNode {
return size
} else if let imageNode = self.imageNode {
let nodeSize = imageNode.image?.size ?? CGSize()
let size = CGSize(width: max(nodeSize.width, superSize.width), height: max(nodeSize.height, superSize.height))
let size = CGSize(width: max(nodeSize.width, superSize.width), height: max(44.0, max(nodeSize.height, superSize.height)))
let imageFrame = CGRect(origin: CGPoint(x: floorToScreenPixels((size.width - nodeSize.width) / 2.0) + 5.0, y: floorToScreenPixels((size.height - nodeSize.height) / 2.0)), size: nodeSize)
imageNode.frame = imageFrame
self.imageRippleNode.frame = imageFrame