Skip to content

Implement modal width='auto'#18

Merged
RtlZeroMemory merged 2 commits into
mainfrom
feat/modal-auto-width
Feb 11, 2026
Merged

Implement modal width='auto'#18
RtlZeroMemory merged 2 commits into
mainfrom
feat/modal-auto-width

Conversation

@RtlZeroMemory

Copy link
Copy Markdown
Owner

Fixes ModalProps.width: "auto" being ignored during layout.

  • Measures modal content/actions to compute a natural width when width: "auto"
  • Respects maxWidth and existing viewport clamps
  • Adds layout edge-case tests for auto width + maxWidth
  • Updates docs to reflect default width and "auto" behavior

Checks:

  • npm run lint
  • npm run typecheck
  • npm test (passed locally)
  • npm run test:e2e skipped on non-Linux by design

@RtlZeroMemory
RtlZeroMemory merged commit 125ec18 into main Feb 11, 2026
12 of 14 checks passed
@RtlZeroMemory
RtlZeroMemory deleted the feat/modal-auto-width branch February 11, 2026 07:45
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