Skip to content

fix(action-center): let the action drawer take the width it asks for - #846

Merged
gkhngyk merged 1 commit into
mainfrom
fix/action-drawer-width
Sep 28, 2026
Merged

gkhngyk merged 1 commit into
mainfrom
fix/action-drawer-width

Conversation

@gkhngyk

@gkhngyk gkhngyk commented Sep 27, 2026

Copy link
Copy Markdown
Contributor

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.

SheetContent scopes its default width to the side: data-[side=right]:w-3/4 and data-[side=right]:sm:max-w-sm. tailwind-merge does not treat those as conflicting with an unscoped w-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-xl only.

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 fix

How to test

  1. Open the Action Center and click any action. On desktop the drawer is visibly wider than before (576px).
  2. Open the Tasks tab. Each task's full text is readable, and long ones wrap.
  3. On a phone-width window, the drawer takes the full width, and task text is readable beside the status select.

Checklist

  • Branch follows the naming convention
  • Commits follow Conventional Commits
  • yarn lint passes
  • yarn typecheck passes
  • yarn format:check passes
  • Changes are focused — one concern per PR

🤖 Generated with Claude Code

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]>
@gkhngyk
gkhngyk merged commit 833779b into main Sep 28, 2026
6 checks passed
@gkhngyk
gkhngyk deleted the fix/action-drawer-width branch September 28, 2026 16:35
@gkhngyk gkhngyk mentioned this pull request Oct 2, 2026
33 of 37 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant