Various fixes

This commit is contained in:
Ilya Laktyushin
2024-03-04 17:52:17 +04:00
parent 79ac0a6c5f
commit be9463e80b
7 changed files with 47 additions and 13 deletions

View File

@@ -728,7 +728,7 @@ public final class ChatMessageAttachedContentNode: ASDisplayNode {
let contentFileSizeAndApply: (CGSize, ChatMessageInteractiveFileNode.Apply)?
if let contentFileFinalizeLayout {
let (size, apply) = contentFileFinalizeLayout(resultingWidth - insets.left - insets.right)
let (size, apply) = contentFileFinalizeLayout(resultingWidth - insets.left - insets.right - 6.0)
contentFileSizeAndApply = (size, apply)
} else {
contentFileSizeAndApply = nil
@@ -846,7 +846,7 @@ public final class ChatMessageAttachedContentNode: ASDisplayNode {
offsetY: actualSize.height
))
actualSize.height += contentFileSize.height
actualSize.height += contentFileSize.height + 9.0
}
case .actionButton:
if let (actionButtonSize, _) = actionButtonSizeAndApply {