Fix text field insets in editor

This commit is contained in:
Ilya Laktyushin
2023-08-21 16:54:35 +04:00
parent f9060c696b
commit b53be04a2e
2 changed files with 25 additions and 25 deletions

View File

@@ -736,7 +736,7 @@ public final class MessageInputPanelComponent: Component {
var fieldBackgroundFrame: CGRect
if hasMediaRecording {
fieldBackgroundFrame = CGRect(origin: CGPoint(x: mediaInsets.left, y: insets.top), size: CGSize(width: availableSize.width - mediaInsets.left - mediaInsets.right, height: textFieldSize.height))
} else if isEditing {
} else if isEditing || component.style == .editor {
fieldBackgroundFrame = fieldFrame
} else {
if component.forwardAction != nil && component.likeAction != nil {