fix(desktop): new workspace composer cleanup, and cap prompt inputs at 10 lines
Merged
SA
16d ago+13+13+01234567890123456789-320-320-012345678901234567890123456789
What
- Resize handles removed (fixes the edge line). The thin vertical line on the new-workspace composer's left edge was the hover indicator of
SymmetricResizeHandles. The handles are now gone, and the composer is a fixedmax-w-[592px](the old default).SymmetricResizeHandlesand thenew-workspace-widthstore had no other users and are deleted. The store's localStorage key moves toDEAD_KEYSso the boot sweep clears it from existing profiles. The two "Resize … edge" messages drop out of every catalog. - No layout shift when the composer changes size. The heading group (icon, "What should we build next?", star pill) was a
flex-1sibling of the composer, so it re-centred whenever the composer block changed height. It is now absolutely positioned at the exact vertical centre (top-1/2 -translate-y-1/2), and the composer block is bottom-anchored (flex-1 justify-end) and grows upward. The heading hides below 640px of viewport height. The star pill keeps pointer events. - Every prompt input caps at 10 lines (chat-ui).
.prompt-input-editorwasmax-height: 40vh(443px on a 1108px window). It is nowmin(10lh, var(--prompt-input-max-height, 40vh)): 10 lines (227.5px) everywhere, chat included, with 40vh still the limit on short windows. The new-workspace screen sets--prompt-input-max-height: max(4.5rem, calc(50vh - 16rem)), so on short windows the composer stops before the centred heading. - The redundant
className="w-full"on both new-workspace composers is dropped.
Screenshots
https://app.superset.sh/page/new-workspace-screen-composer-line-and-layout-shif-mavua7
| Composer state | Heading top, before | Heading group centre, after | Composer top, after | Editor, after |
|---|---|---|---|---|
| Empty, suggestions shown | 445px | 554px | 828px | 40px |
| 1 line | 501px | 554px | 940px | 40px |
| 6 lines | 453px | 554px | 844px | 137px |
| 10 lines | n/a | 554px | 753px | 228px, no scroll |
| 11+ lines | n/a | 554px | 753px | 228px, scrolls |
Screen centre is 554px; the heading group ends at 643px.
Validation
- Ran the desktop dev app in a cloud workspace (1920×1108 window) and drove it over CDP: typed into the real composer (Shift+Enter for new lines) and measured the heading group, composer, and editor in each state. After the change there are no
separatorhandles, the composer edge has a normal cursor, and the width is 592px. - The "before" edge-line image is partly synthetic. The headless display reports
(hover: none), so I injected the handle'sbg-bordercolor to show the line. - Chat's 10-line cap is checked synthetically only: a
.prompt-input-editorwith no override in the running renderer computesmax-height: 227.5px. I did not open a real chat pane (every workspace in this dev app is on a remote host). - Desktop
bun run typecheckpasses, the persisted-keys tests pass (12/12),bun run check:i18nregenerated the catalogs (only the two resize messages removed, 18 locales), andbiome checkpasses on the touched directories. - Not covered: the Paradev-shell variant of this screen (it picks up the cap and the fixed width, but was not exercised), and windows shorter than 1108px.
Summary by CodeRabbit
- Improvements
- The new-workspace screen keeps the composer bottom-aligned, with a consistent maximum width across both layouts.
- Prompt input height adapts to the available screen space, and the heading and GitHub star badge are positioned independently in the standard layout.
- Changes
- Composer resizing is no longer available. The composer uses a fixed maximum width instead of a user-adjustable width.