Add configuration option for follow-up prompts & fix overflow in FollowUpPromptBubble#330
Open
charlyhue wants to merge 1 commit intoFlowiseAI:mainfrom
Open
Conversation
- Introduce configuration option for follow-up prompts - Remove max-content on FollowUpPromptBubble to allow line break (and prevent overflow)
| class="px-2 py-1 whitespace-pre-wrap max-w-full chatbot-host-bubble border" | ||
| data-testid="host-bubble" | ||
| style={{ | ||
| width: 'max-content', |
Contributor
There was a problem hiding this comment.
Hi @charlyhue, these are really awesome updates for the chat experience! Ive found an edge case where if the chat is the small experience (and not the Full screen experience) and the follow up prompts are all quite long, it can take up majority of the screen real estate, leaving the chat not scrollable and gives the user not much choice (but to probably choose the last or second last prompt). Rather than wrapping the whole width of the prompt how about we set it to a certain width and add ellipsis, and make the full text visible on hover?
<span title={props.prompt} ... style={{ ...
width: 'min-content',
'max-width': '280px', // example max width
'text-overflow': 'ellipsis',
...
>
Contributor
chloebyun-wd
left a comment
There was a problem hiding this comment.
Great additions, left one comment
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces a configuration option for follow-up prompts and improves the layout of the FollowUpPromptBubble component.
Changes:
Why:
These changes make the follow-up prompt behavior more flexible and improve UI rendering for long prompt texts.