Skip to content

Commit ceefdc5

Browse files
committed
Remove an unwanted animation
1 parent 5e45c8e commit ceefdc5

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Core/Sources/SuggestionWidget/SuggestionPanelContent/ChatPanel.swift

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import MarkdownUI
22
import SwiftUI
33

44
struct ChatPanel: View {
5-
@ObservedObject var chat: ChatProvider
5+
let chat: ChatProvider
66
@Namespace var inputAreaNamespace
77
@State var typedMessage = ""
88

@@ -21,7 +21,6 @@ struct ChatPanel: View {
2121
typedMessage: $typedMessage
2222
)
2323
}
24-
.animation(.linear(duration: 0.2), value: chat.isReceivingMessage)
2524
.background(.regularMaterial)
2625
.xcodeStyleFrame()
2726
}
@@ -140,7 +139,7 @@ struct ChatPanelMessages: View {
140139
.stroke(Color(nsColor: .separatorColor), lineWidth: 1)
141140
}
142141
.padding(.leading)
143-
.padding(.trailing, 4)
142+
.padding(.trailing, 8)
144143
.rotationEffect(Angle(degrees: 180))
145144
.scaleEffect(x: -1, y: 1, anchor: .center)
146145
.shadow(color: .black.opacity(0.1), radius: 2)
@@ -164,7 +163,7 @@ struct ChatPanelMessages: View {
164163
RoundedCorners(tr: r, bl: r * 1.5, br: r)
165164
.stroke(Color(nsColor: .separatorColor), lineWidth: 1)
166165
}
167-
.padding(.leading, 4)
166+
.padding(.leading, 8)
168167
.padding(.trailing)
169168
.rotationEffect(Angle(degrees: 180))
170169
.scaleEffect(x: -1, y: 1, anchor: .center)

0 commit comments

Comments
 (0)