Skip to content

fix(UI): keep resize handle out of prompt textarea#9119

Open
DustyShoe wants to merge 2 commits intoinvoke-ai:mainfrom
DustyShoe:Fix(UI)--prompt-resize-handle-covering-text
Open

fix(UI): keep resize handle out of prompt textarea#9119
DustyShoe wants to merge 2 commits intoinvoke-ai:mainfrom
DustyShoe:Fix(UI)--prompt-resize-handle-covering-text

Conversation

@DustyShoe
Copy link
Copy Markdown
Collaborator

Summary

Fix prompt textarea layout so the resize handle no longer covers the last visible line of text when the prompt scrolls during caret navigation with the Up and Down arrow keys. This keeps the existing resize behavior, but reserves space below the prompt content in invokeai/frontend/web/src/features/parameters/components/Core/ParamPositivePrompt.tsx and invokeai/frontend/web/src/features/parameters/components/Core/ParamNegativePrompt.tsx, using a shared height constant from invokeai/frontend/web/src/features/parameters/components/Prompts/PromptResizeHandle.tsx.

Related Issues / Discussions

https://discord.com/channels/1020123559063990373/1149506274971631688/1500867977631764553

QA Instructions

  1. Enter enough text to make each textarea scrollable.
  2. Place the caret near the end of the prompt and use the Up and Down arrow keys to scroll through the text.
  3. Confirm the last visible line stays fully visible above the resize handle.
  4. Scroll with the mouse wheel and confirm behavior is unchanged.
  5. Drag the resize handle and confirm prompt resizing still works.

Merge Plan

Simple merge.

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • ❗Changes to a redux slice have a corresponding migration
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@github-actions github-actions Bot added the frontend PRs that change frontend files label May 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend PRs that change frontend files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant