You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Improvement: the chat composer takes a third of a laptop screen and cannot be made smaller #5035
On a laptop without an external monitor, the chat composer covers about a third of the window: the field, its toolbar and the notice under it. There is no way to make it smaller. A pilot reported this as "the input field is very large; without an extra screen it covers 1/3 of the window, and I found no way to shrink it".
Why
Observed at maina71d0d92e9.
THREAD_COMPOSER_FIELD_CLASS is min-h-[72px] sm:min-h-[100px] short-viewport:min-h-12 (packages/ui/src/components/thread/layout.ts:42-43).
short-viewport applies only at max-height: 30rem (packages/ui/src/globals.css:37).
A 1080p laptop at 125–150 % display scaling leaves roughly 600–750 CSS px for the page, so it gets the full 100 px field, plus the toolbar and the two-line notice below the composer.
Proposed
Start the empty field at one or two lines and grow it with its content up to a cap (for example 40 % of the viewport), then scroll inside it.
Apply the compact sizes below about 800 px of viewport height, not only below 480 px.
On short viewports, keep the notice under the composer to one line, or move it behind an info button.
Optionally, add a resize handle or a way to collapse the composer.
Done when
At 1280×720 and 1366×768, the composer with an empty field is clearly smaller than today (target: at most about 15 % of the viewport height). The PR includes screenshots at three viewport sizes.
Long drafts still grow up to the cap and scroll, on desktop and on phones.
Visual and browser tests are updated.
Scope for parallel work
This touches packages/ui/src/components/thread/layout.ts and the composer's layout and footer. The dictation issue (#5034) touches the same component's submit logic only.
Activity
fix(platform): keep the chat composer compact on laptop screens