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

Dynamic Input Box Resizing in Chatbot Interface #180

Open
taichan03 opened this issue Oct 29, 2024 · 0 comments
Open

Dynamic Input Box Resizing in Chatbot Interface #180

taichan03 opened this issue Oct 29, 2024 · 0 comments

Comments

@taichan03
Copy link
Collaborator

Feature Description:
The chatbot input box should dynamically resize to accommodate multi-line text input when the user presses Shift + Enter. This will improve readability and user experience, especially for longer messages.

Functional Requirements:
Trigger for Resizing:

The input box should increase in height each time the user presses Shift + Enter.
Standard Enter should send the message without changing the input box size.
Dynamic Resizing Behavior:

Each Shift + Enter press should expand the height of the input box by a specified amount (e.g., one additional line or a defined pixel value).
The input box should not exceed a maximum height to prevent excessive growth, maintaining a clear and visually pleasing interface.
Auto-Shrink on Clear Input:

After the message is sent (or input box is cleared), the height should reset to its default size.
Error Handling:

If a user repeatedly presses Shift + Enter beyond the maximum height, no further resizing should occur.

Image

@taichan03 taichan03 converted this from a draft issue Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Ready to pick up
Development

No branches or pull requests

2 participants