tjtanjin / react-chatbotify

A modern React library for creating flexible and extensible chatbots.
https://react-chatbotify.com
MIT License
167 stars 79 forks source link

[Bug] Fix load & previous chat history text overflow #46

Closed tjtanjin closed 5 months ago

tjtanjin commented 5 months ago

Bug Description The bug occurs when a user modifies the load chat history button text or previous chat history line break text with a very long message. Basically, the button/line break will then expand to fill up the entire width of the chat window and possibly break into the next line as well. This is visually unappealing, and there should be a maximum width set such that beyond a certain text length, the characters are replaced with ellipsis.

Steps To Reproduce Steps to reproduce the bug behavior:

  1. Modify the load/previous chat history text with a very long message 2) Observe the visual differences

Expected behavior Long text should be trimmed and replaced with ellipsis at the end.