Skip to content

fix(ui): keep Ask AI input visible after responses#1035

Merged
backnotprop merged 2 commits into
backnotprop:mainfrom
dmmulroy:fix/ask-ai-input-layout
Jul 11, 2026
Merged

fix(ui): keep Ask AI input visible after responses#1035
backnotprop merged 2 commits into
backnotprop:mainfrom
dmmulroy:fix/ask-ai-input-layout

Conversation

@dmmulroy

@dmmulroy dmmulroy commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Summary

  • keep the Ask AI follow-up composer inside the sidebar after a long response completes
  • replace the chat root's h-full sizing with a bounded flex-1 min-h-0 layout

Root cause

The chat root was a shrinking flex child with h-full and an automatic minimum height. While the short streaming state could shrink beneath the sidebar header, a sufficiently long completed response made the automatic minimum height retain the full panel height. The header plus that full-height child pushed the provider bar and textarea below the viewport.

Verification

  • bun run --cwd packages/ui typecheck
  • bun run --cwd apps/review build && bun run build:hook

A 10-second headed-Chrome proof was recorded locally as artifacts/ask-ai-input-fix-proof.mp4 (kept out of git to avoid committing a generated 6.3 MB binary).

dmmulroy added 2 commits July 10, 2026 09:47
Long completed responses caused the h-full chat flex item to retain its automatic minimum height, pushing the follow-up composer below the sidebar viewport. Let the panel consume the remaining flex space with min-h-0 so only the message area scrolls.

return (
<div className="flex flex-col h-full">
<div className="flex flex-col flex-1 min-h-0">

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[praise] testing this review from something new

@backnotprop backnotprop merged commit 1f70937 into backnotprop:main Jul 11, 2026
13 checks passed
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.

2 participants