Repository navigation
Composer | Make the compose panel resizable - #55
Merged
Merged
Conversation
On short viewports the reply composer covers the thread. A top-edge handle lets you shrink it, and the chosen height is remembered for the session. Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
On short or narrow screens the reply composer covers most of the thread. The panel now has a top-edge resize handle, and it starts shorter on small viewports so more of the email stays visible.
Changes
The handle matches the assistant split: pointer drag, arrow keys, Home/End, and a 24px hit target. Height is stored in sessionStorage for the tab.
Send, Cancel, and Attach stay pinned under the fields. When the panel is short, To / Cc / Subject scroll inside
.composer__panelinstead of clipping the toolbar.The default cap (
min(20rem, 48vh)) only applies below 960px wide or 720px tall. A user-chosen height wins over that cap, so you can still grow the panel on a phone.Worth a close look:
initComposerResizeand theis-resizedCSS. The covered-focus observer already watches the composer, so shrinking it should put previously covered reply buttons back in the tab order.Test plan