mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Fix ad and contact buttons layout
This commit is contained in:
@@ -596,7 +596,12 @@ public final class ChatMessageAttachedContentNode: ASDisplayNode {
|
||||
false
|
||||
)
|
||||
actionButtonMinWidthAndFinalizeLayout = (buttonWidth, continueLayout)
|
||||
actualWidth = max(actualWidth, buttonWidth)
|
||||
|
||||
var buttonInset: CGFloat = 0.0
|
||||
if let buttonIconImage {
|
||||
buttonInset += buttonIconImage.size.width + 2.0
|
||||
}
|
||||
actualWidth = max(actualWidth, buttonWidth + buttonInset * 2.0)
|
||||
} else {
|
||||
actionButtonMinWidthAndFinalizeLayout = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user