Repository navigation
feat(app): explore tighter composer layouts - #57320
Draft
kitlangton wants to merge 1 commit into
Draft
kitlangton wants to merge 1 commit into
kitlangton wants to merge 1 commit into
Conversation
This branch has not been deployed
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.
Exploration for Kit's "why is this composer so big?" note. Draft: the default layout is unchanged (
layoutdefaults to"today", and nothing in the app passes another value). The variants live behind alayoutprop onComposer/ComposerEditorso they can be compared in Storybook: OpenCode/Composer/Flow → Layouts (layout × scenario × width) and Layout In Session (with the "7 subagents" chip).Today, measured (CSS px, 720px composer)
min-h-[60px]withpt-4 pb-2and a 20px line, so 16px of its height has no job. The text line ends at y=36 and the controls start at y=68, a 32px gap. The form also hasmin-h-[96px].+at x=8, model text at x=51, variant text about 22px after the model chevron. Those gaps are the ghost buttons' 11px padding plusms-1/gap-1.Layouts
todaytightjoinedtight, with the variant inside the model chip ("Anthropic / Claude Opus 5.5 High ⌄"). The model dialog already changes the variant with ←/→.slimjoinedwith a 12px text inset and 24px controls 8px from the edges. The+glyph sits on the text's 12px spine.inlinejoinedonce the draft wraps or has context, and stays two rows until it is cleared.Verification
bun typecheck(packages/app)data-layout="today"attribute, twodata-slots and a CSS variable whose default is the old 16px value