Commit 8a14c47
authored
🤖 fix: cap expanded queued message height and make it scrollable (#3057)
## Summary
Cap the expanded queued message content at `40vh` and make it scroll on
overflow, so long queued messages no longer push the composer
off-screen.
## Background
When a queued message is expanded and its content exceeds viewport
height, the entire `ChatInputPane` grows unbounded—the Edit/Send now
buttons and the composer itself get displaced below the fold. This is
the same class of overflow that `AttachedReviewsPanel` already handles
with a viewport-relative height cap.
## Implementation
Wrapped `<UserMessageContent>` inside the expanded `QueuedMessageCard`
in an inner `<div className="max-h-[40vh] overflow-y-auto">` scroll
container. The action row (`Edit` / `Send now`) stays outside that
wrapper so controls remain always visible while the message body scrolls
independently.
---
_Generated with `mux` • Model: `anthropic:claude-opus-4-6` • Thinking:
`xhigh` • Cost: `$2.02`_
<!-- mux-attribution: model=anthropic:claude-opus-4-6 thinking=xhigh
costs=2.02 -->1 parent 343a31b commit 8a14c47
1 file changed
+9
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
91 | 94 | | |
92 | 95 | | |
93 | 96 | | |
| |||
0 commit comments