diff --git a/Core/Sources/ConversationTab/ChatPanel.swift b/Core/Sources/ConversationTab/ChatPanel.swift index 74708ed..1506901 100644 --- a/Core/Sources/ConversationTab/ChatPanel.swift +++ b/Core/Sources/ConversationTab/ChatPanel.swift @@ -337,7 +337,7 @@ struct ChatPanelMessages: View { } } else { Task { - // Scoll to bottom when `isReceiving` changes to `false` + // Scroll to bottom when `isReceiving` changes to `false` if pinnedToBottom { await Task.yield() withAnimation(.easeInOut(duration: 0.1)) { diff --git a/Core/Sources/ConversationTab/ConversationTab.swift b/Core/Sources/ConversationTab/ConversationTab.swift index 2884f33..de366f0 100644 --- a/Core/Sources/ConversationTab/ConversationTab.swift +++ b/Core/Sources/ConversationTab/ConversationTab.swift @@ -26,7 +26,7 @@ public class ConversationTab: ChatTab { // Get chat tab title. As the tab title is always "Chat" and won't be modified. // Use the chat title as the tab title. - // TODO: modify tab title dynamicly + // TODO: modify tab title dynamically public func getChatTabTitle() -> String { return chat.title } @@ -157,7 +157,7 @@ public class ConversationTab: ChatTab { let service = ChatService.service(for: chatTabInfo) let tab = ConversationTab(service: service, store: store, with: chatTabInfo) - // lazy restore converstaion tab for not selected + // lazy restore conversation tab for not selected if chatTabInfo.isSelected { tab.restoreIfNeeded() } diff --git a/Core/Sources/ConversationTab/Views/ChatPanelInputArea/InputAreaTextEditor.swift b/Core/Sources/ConversationTab/Views/ChatPanelInputArea/InputAreaTextEditor.swift index 4031aab..2d38f4a 100644 --- a/Core/Sources/ConversationTab/Views/ChatPanelInputArea/InputAreaTextEditor.swift +++ b/Core/Sources/ConversationTab/Views/ChatPanelInputArea/InputAreaTextEditor.swift @@ -149,7 +149,7 @@ struct InputAreaTextEditor: View { await onTypedMessageChanged(newValue: newValue) } } - /// When chat mode changed, the chat tamplate and agent need to be reloaded + /// When chat mode changed, the chat template and agent need to be reloaded .onChange(of: chat.isAgentMode) { _ in guard isEditorActive else { return } Task {