Skip to content

feat: make input template a multiline textarea with auto-grow - #6897

Open
Qznan wants to merge 1 commit into
ChatGPTNextWeb:mainfrom
Qznan:feat/input-template-multiline
Open

Qznan wants to merge 1 commit into
ChatGPTNextWeb:mainfrom
Qznan:feat/input-template-multiline

Conversation

@Qznan

@Qznan Qznan commented Sep 11, 2026

Copy link
Copy Markdown
fe21d41e-4441-46d5-9458-d5d41162a0d8

The Input Template field in model config was a single-line , so newlines could not be entered and long templates were hard to view.

Switch it to the shared ui-lib Input (textarea) and add auto-grow: the field stays compact (2 rows) at rest and expands to fit the content (4-20 rows) when focused, mirroring the chat input box behavior. Also wrap the ui-lib Input with forwardRef so callers can access the DOM node for measurement; this is backward compatible.

💻 变更类型 | Change Type

  • feat
  • fix
  • refactor
  • perf
  • style
  • test
  • docs
  • ci
  • chore
  • build

The Input Template field in model config was a single-line <input>, so
newlines could not be entered and long templates were hard to view.

Switch it to the shared ui-lib Input (textarea) and add auto-grow: the
field stays compact (2 rows) at rest and expands to fit the content
(4-20 rows) when focused, mirroring the chat input box behavior. Also
wrap the ui-lib Input with forwardRef so callers can access the DOM
node for measurement; this is backward compatible.
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.

1 participant