Make new chat message text selectable in Obsidian side pane

Resolves #789
This commit is contained in:
Debanjum Singh Solanky 2024-06-01 11:01:05 +05:30
parent 7fb7f200b3
commit 7d7d4cf5c3
2 changed files with 2 additions and 1 deletions

View file

@ -411,7 +411,7 @@ export class KhojChatView extends KhojPaneView {
attr: { attr: {
class: `khoj-chat-message-text khoj` class: `khoj-chat-message-text khoj`
}, },
}) }).createDiv();
// Scroll to bottom after inserting chat messages // Scroll to bottom after inserting chat messages
this.scrollChatToBottom(); this.scrollChatToBottom();

View file

@ -76,6 +76,7 @@ If your plugin does not need CSS, delete this file.
display: inline-block; display: inline-block;
max-width: 80%; max-width: 80%;
text-align: left; text-align: left;
user-select: text;
} }
/* color chat bubble by khoj blue */ /* color chat bubble by khoj blue */
.khoj-chat-message-text.khoj { .khoj-chat-message-text.khoj {