Repository navigation
Add a size prop to DialogContent - #223
Open
andrewhuhh wants to merge 1 commit into
Open
andrewhuhh wants to merge 1 commit into
andrewhuhh wants to merge 1 commit into
Conversation
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
💬 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. |
[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
|
This branch has not been deployed
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.
DialogContenthad a single width, 440px, so a dialog built around a table had to overridemax-widthwith a page class (for examplesm: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-lgtoken, 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.