Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@shivamraut101
Copy link
Contributor

Summary

This PR fixes an issue where the chat input textarea had a fixed height, causing long messages to be hidden. The input now auto-expands vertically as the user types, improving visibility and the editing experience.

Fixes

Closes #2939

Changes

  • Updated directive on the textarea.
  • Added helper to dynamically set style.height based on scrollHeight.
  • Ensures height resets correctly when the message is sent.

🤖 AI Contribution Info

  • AI-Assisted: Yes
  • Testing Level: Lightly tested (Verified logic locally)
  • Understanding: I confirm I understand the code changes. It uses the standard scrollHeight technique to expand the box and the directive to ensure it resets when the Lit component state changes (e.g. after sending).

@moltbot-barnacle moltbot-barnacle bot added the app: web-ui App: web-ui label Jan 27, 2026
@vignesh07 vignesh07 self-assigned this Jan 27, 2026
@vignesh07 vignesh07 merged commit b5c885b into openclaw:main Jan 27, 2026
21 of 24 checks passed
@vignesh07
Copy link
Contributor

Merged via squash (merge commit: b5c885b). Thanks @shivamraut101!

@shivamraut101
Copy link
Contributor Author

It feels great @vignesh07, to contribute in a revolutionary open source like this, all pleasure is mine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Webchat textarea does not auto-expand as user types

2 participants