Repository navigation
fix(action-center): let the action drawer take the width it asks for - #846
Merged
Merged
Conversation
The Sheet scopes its default width to the side (data-[side=right]:w-3/4, data-[side=right]:sm:max-w-sm). tailwind-merge keeps those beside an unscoped w-full / sm:max-w-xl, and the attribute variant wins on specificity, so the drawer stayed at 384px on desktop and three quarters of a phone. Beside the status select and delete button that left task text about eight characters. The drawer now overrides the scoped classes. Co-Authored-By: Claude Opus 5.5 <[email protected]>
33 of 37 tasks
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
Task text in the action drawer showed about eight characters. #845 let the text wrap and asked for a wider drawer, but the drawer never got wider. That was the real problem.
SheetContentscopes its default width to the side:data-[side=right]:w-3/4anddata-[side=right]:sm:max-w-sm. tailwind-merge does not treat those as conflicting with an unscopedw-full/sm:max-w-xl, so both sets reach the DOM, and the attribute-variant selector wins on specificity. The drawer stayed at 384px on desktop and 3/4 of the screen on a phone, whatever width the drawer asked for. After the 128px status select and the delete button, the text had almost nothing left.The action drawer now overrides the scoped classes (
data-[side=right]:w-full data-[side=right]:sm:max-w-xl). Checked with tailwind-merge. Before:data-[side=right]:w-3/4 data-[side=right]:sm:max-w-sm … w-full sm:max-w-xl(the scoped pair wins). After:data-[side=right]:w-full data-[side=right]:sm:max-w-xlonly.The other right-side drawers (signals, KPI, history and others) pass unscoped widths the same way and are also stuck at 384px. They are left out of this PR to keep it focused. The follow-up is to fix it once in
sheet.tsx.Related issue
Follow-up to #845
Type of change
fix— Bug fixHow to test
Checklist
yarn lintpassesyarn typecheckpassesyarn format:checkpasses🤖 Generated with Claude Code