Repository navigation
fix(desktop): give bare-Composer story harnesses a full-width frame - #6308
Open
Mola-maker wants to merge 1 commit into
Open
Mola-maker wants to merge 1 commit into
Mola-maker wants to merge 1 commit into
Conversation
Fixes apache#5909. The row-flex harnesses shrink-wrapped the composer form to its padding, collapsing the card's min(800px, 100%) width to zero; the preview token itself resolves to 800px. Wrap the composer in a width:100% frame, the same frame SkillDraftHarness already uses, and correct the stale comment in composer-resume that blamed a missing token. Adds a width regression assertion to the paste story's first play. Generated-by: Muse
|
This pull request has had no new commits for 30 days and has been marked stale. It will be closed in 7 days unless a new commit is pushed. Comments do not reset this timer: only a new commit does. If the pull request is intentionally long-lived, a maintainer can apply the |
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.
Summary
Fixes #5909.
The bare-Composer stories rendered the composer card at zero width. The issue blamed a missing
--maka-reading-measuretoken, but the token resolves fine (800px). The real cause: the story harnesses put the composer form in a row-flex box, which shrink-wraps it to its padding. The fix wraps the composer in awidth: 100%frame at those four harness sites, the same frame SkillDraftHarness already uses. No production code is touched. The stale comment blaming the token is corrected too.Verification
biome checkpasses on all 3 changed files.typecheck:stories: 4 pre-existing errors in packages/ui/src, none in the changed files. A full local Storybook build still fails on an unrelated missing generated file; CI runs the full suite.AI use
Tool(s) and scope: Muse — reproduction (scoped Storybook build plus Playwright width measurement), the harness fix, and the regression assertion. The commit carries a Generated-by trailer.
Checklist
Does this PR entail a change in behavior?