mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Fix text field insets in editor
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user