Skip to content

fix(desktop): contain long confirmation dialog content - #227

Merged
GoDiao merged 3 commits into
GoDiao:mainfrom
imshah-id:fix/confirm-dialog-overflow
Nov 2, 2026
Merged

GoDiao merged 3 commits into
GoDiao:mainfrom
imshah-id:fix/confirm-dialog-overflow

Conversation

@imshah-id

Copy link
Copy Markdown
Contributor

Closes #226.

Constrain both grid children in ConfirmDialog: the header can shrink below its min-content width, and the description fills that bounded width. The existing path ellipsis then works, keeping the footer buttons inside the dialog. This also covers other confirmation bodies using the shared component.

Validation:

  • New desktop/mobile Vitest cases failed before the fix and pass afterward.
  • bun test: 1,874 passed.
  • Desktop bun run lint: passed.
  • Desktop bun run test -- --run: 2,209 passed, 4 skipped (Node 22.7.0).
  • Chromium harness rendering the actual component: a long path previously expanded a 384px dialog's scroll width to 3,995px; the fix keeps it at 384px. Checked phone/desktop widths and light/dark themes, ellipsis, and both button hit targets. The Vitest assertions cover the layout classes and cancel behavior; jsdom does not calculate layout.

@GoDiao GoDiao left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @imshah-id, and welcome to DreamCoder! This fixes #226 at the right layer. The dialog's content grid has an auto column, so a path with no break points widened the column past the dialog. min-w-0 on the header lets the column shrink, and w-full on the description gives the existing truncate a bounded width. Since the fix is in ConfirmDialog, it covers the other confirmation dialogs as well.

I pushed one small commit on top so it could merge today:

  • Thanks @imshah-id. and the same entry format as the others in the CHANGELOG.
  • Merged the current main, which had cut 0.8.0 in the meantime. The entry now sits under [Unreleased] instead of the released 0.8.0 section.

CI is green. If you find DreamCoder useful, a star on the repo would be much appreciated.

@GoDiao
GoDiao merged commit ca728a8 into GoDiao:main Nov 2, 2026
4 checks passed
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.

Bypass-permissions confirm dialog overflows and hides its buttons when the working directory path is long

2 participants