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

Markdown in progress div is not removed #77

Closed ScreamZ closed 3 weeks ago

ScreamZ commented 3 weeks ago

In 2.3.8 it looks like this md-in-progress div doesn't leave the UI after the message completed

image image

This causes a small UI glitch because of the gap: 0.5

salmenus commented 3 weeks ago

Fixed in this commit: https://github.com/nlkitai/nlux/commit/ef904eaf4abb5893a02533c52df8cd75fdb5dbd9 Not published to NPM yet.

salmenus commented 3 weeks ago

Alright β€”Β Patch published to NPM in version 2.3.9 that will fix this issue βœ…

Example here: https://codesandbox.io/p/sandbox/md-container-2-3-9-gxpcc2?file=%2FApp.tsx

ScreamZ commented 3 weeks ago

Looks good to me,

It even fixed a bug with markdown line breaking for some reasons. Good job πŸ™πŸ»