Skip to content

Enhancement: Changing input field into textarea #143

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

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

leekahung
Copy link
Contributor

@leekahung leekahung commented Jun 22, 2025

This PR resolves #142 by switching the existing input element for the input field with a textarea. This gives users more flexibility in typing and formatting their message before sending it to the chatbot. At the moment, the max height has been arbitrarily set to 88px. That can be changed in the future if needed.

Screen.Recording.2025-06-22.at.1.30.58.AM.mov

The behavior used for resizing the textarea is similar to what OpenAI uses for ChatGPT. It keeps the messages in place at the same location while letting the text field expand.

Screen.Recording.2025-06-22.at.1.32.25.AM.mov

Other changes in this PR include a minor edit for the suggested prompt by adding a max size of 650px to make them stay within the 700px width of the MessageWindow.

…r messages; Create handler and useEffect for resizing textarea
@leekahung leekahung self-assigned this Jun 22, 2025
@leekahung leekahung added enhancement New feature or request frontend Frontend implementation (follows UX design) labels Jun 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request frontend Frontend implementation (follows UX design)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: Change input field into textarea for chatbox
1 participant