diff --git a/src/interface/obsidian/src/chat_view.ts b/src/interface/obsidian/src/chat_view.ts index 0d11330c..f56fd7fb 100644 --- a/src/interface/obsidian/src/chat_view.ts +++ b/src/interface/obsidian/src/chat_view.ts @@ -411,7 +411,7 @@ export class KhojChatView extends KhojPaneView { attr: { class: `khoj-chat-message-text khoj` }, - }) + }).createDiv(); // Scroll to bottom after inserting chat messages this.scrollChatToBottom(); diff --git a/src/interface/obsidian/styles.css b/src/interface/obsidian/styles.css index fedecaa5..31314271 100644 --- a/src/interface/obsidian/styles.css +++ b/src/interface/obsidian/styles.css @@ -76,6 +76,7 @@ If your plugin does not need CSS, delete this file. display: inline-block; max-width: 80%; text-align: left; + user-select: text; } /* color chat bubble by khoj blue */ .khoj-chat-message-text.khoj {