From 05e8e96e03989430c3f5a8cbb30beebf65d067fd Mon Sep 17 00:00:00 2001 From: khanhkhanhlele Date: Fri, 7 Nov 2025 17:25:28 +0700 Subject: [PATCH] Fix typos in some files --- Core/Sources/ConversationTab/ChatPanel.swift | 2 +- Core/Sources/ConversationTab/ConversationTab.swift | 4 ++-- .../Views/ChatPanelInputArea/InputAreaTextEditor.swift | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Core/Sources/ConversationTab/ChatPanel.swift b/Core/Sources/ConversationTab/ChatPanel.swift index 74708ed9..15069017 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 2884f332..de366f08 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 4031aab3..2d38f4a6 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 {