Skip to content

Commit 8350266

Browse files
committed
Remove matchedGeometryEffect in chat panel so the text field won't be clamped
1 parent 45e5a30 commit 8350266

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Core/Sources/SuggestionWidget/SuggestionPanelContent/ChatPanel.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@ struct ChatPanelMessages: View {
7676
}
7777
.buttonStyle(.plain)
7878
.xcodeStyleFrame()
79-
.matchedGeometryEffect(id: "input", in: inputAreaNamespace)
8079
.scaleEffect(x: -1, y: 1, anchor: .center)
8180
}
8281

@@ -165,6 +164,7 @@ struct ChatPanelInputArea: View {
165164
.lineLimit(3)
166165
.multilineTextAlignment(.leading)
167166
.textFieldStyle(.plain)
167+
.frame(maxWidth: .infinity)
168168
.padding(8)
169169
.background(
170170
.regularMaterial,
@@ -176,7 +176,6 @@ struct ChatPanelInputArea: View {
176176
chat.send(typedMessage)
177177
typedMessage = ""
178178
}
179-
.matchedGeometryEffect(id: "input", in: inputAreaNamespace)
180179

181180
Button(action: {
182181
if typedMessage.isEmpty { return }

0 commit comments

Comments
 (0)