Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TextGenWidget] Fix example output #1092

Merged
merged 6 commits into from
Nov 9, 2023
Merged

Conversation

mishig25
Copy link
Collaborator

@mishig25 mishig25 commented Nov 9, 2023

Comment on lines 64 to 66
// if output doesn't start with space, add space in front of output
const prefix = /^\s/.test(output) ? "" : " ";
renderTypingEffect(prefix+output);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

while working here, I've discovered a subtle UX bug.

The bug is this:
Unlike other widgets that show output.text in seperate box, TextGen widget shows the output as a continuation of the input text area (see attached img). Therefore, for TextGen widget, user is expected to supply output.text that starts with a space. This PR fixes this bug

@mishig25 mishig25 merged commit 7679ff8 into main Nov 9, 2023
0 of 2 checks passed
@mishig25 mishig25 deleted the fix_text_gen_example_output branch November 9, 2023 12:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants