nlkitai / nlux

The π—£π—Όπ˜„π—²π—Ώπ—³π˜‚π—Ή Conversational AI JavaScript Library πŸ’¬ β€”Β UI for any LLM, supporting LangChain / HuggingFace / Vercel AI, and more 🧑 React, Next.js, and plain JavaScript ⭐️
https://docs.nlkit.com/nlux
Other
937 stars 48 forks source link

Regarding Text Selection #88

Closed aspirantzhang closed 1 week ago

aspirantzhang commented 2 weeks ago

I have noticed something unusual with our component – it does not seem to support text selection. As a result, users can view the text but are unable to copy it.

Could you please clarify whether this is an intentional design choice or if it might be a bug? Or is there a setting that I might have overlooked?

Thank you.

salmenus commented 2 weeks ago

@aspirantzhang β€”Β It's not really a bug. We can change it. I'll add an option enable/disable text selection. I'll publish that later today.

salmenus commented 1 week ago

Default behaviour updated. Text is now selectable by default: Example: https://docs.nlkit.com/nlux/examples/conversation-history Release: 2.7.3

Since it's a CSS modification, I will not add a feature toggle for it. Theme creators can enable/disable as they want.

Screenshot 2024-06-19 at 04 38 32
salmenus commented 1 week ago

I'll be closing this issue if no further feedback @aspirantzhang

aspirantzhang commented 1 week ago

Thank you~