Skip to content

Add a size prop to DialogContent - #223

Open
andrewhuhh wants to merge 1 commit into
mainfrom
feat/dialog-size
Open

andrewhuhh wants to merge 1 commit into
mainfrom
feat/dialog-size

Conversation

@andrewhuhh

@andrewhuhh andrewhuhh commented Nov 24, 2026 •

Copy link
Copy Markdown
Collaborator

DialogContent had a single width, 440px, so a dialog built around a table had to override max-width with a page class (for example sm:max-w-2xl). Sheets already pick from fixed sizes. Dialogs now do too:

  • size="sm" (default): 440px, --cipher-size-dialog. Unchanged.
  • size="md": 560px, --cipher-size-dialog-wide, the command palette's width, for field pairs.
  • size="lg": 672px, the new --cipher-size-dialog-lg token, for a dialog built around a table or a preview, such as importing keys from a file.

The size sets only max-width, so below each width the dialog still fills the viewport minus its 16px margins. The new "Sizes: sm, md and lg" example on the dialog page shows all three.

Large dialog at 1706px

Large dialog at 390px

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@infisical-review-police

Copy link
Copy Markdown

💬 Discussion in Slack: #pr-review-cipher-223-add-a-size-prop-to-dialogcontent

Posted by Review Police — reviews, comments, new commits, and CI failures will stream into this channel.

@greptile-apps

greptile-apps Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 4/5

[Low impact] The change reaches the shared dialog component and its documentation.

The PR appears safe to merge, with a non-blocking gap in tests for the new widths.

Findings

  1. P2 Dialog widths go untested ▶

Summary

Adds sm, md, and lg sizes to DialogContent.

  • DialogContent can now open at three shared widths.

Reviews (1) · Last reviewed commit: "Add a size prop to DialogContent" · Reviewed by Greptile

Comment thread site/src/examples/dialog/sizes.tsx Resolved

@capy-ai capy-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Capy found no issues.

Open in Capy

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant