fix(calendar): use w-full instead of w-fit to fill container width#10231
Closed
yetval wants to merge 1 commit intoshadcn-ui:mainfrom
Closed
fix(calendar): use w-full instead of w-fit to fill container width#10231yetval wants to merge 1 commit intoshadcn-ui:mainfrom
yetval wants to merge 1 commit intoshadcn-ui:mainfrom
Conversation
Contributor
|
@yetval is attempting to deploy a commit to the shadcn-pro Team on Vercel. A member of the Team first needs to authorize it. |
… variants - Replace w-fit with w-full min-w-0 on root to fill container - Switch table to month_grid with table-fixed for even column distribution - Add w-full to weekdays, min-w-0 to weekday and day cells for overflow safety - Apply across all 15 calendar variants Closes shadcn-ui#10209 Co-authored-by: Yngesh-Raman-QED42 <130572169+Yngesh-Raman-QED42@users.noreply.github.com>
a518a5a to
7e4084e
Compare
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.
Fixes #10209
w-fiton therootclassname prevents the Calendar from expanding beyond its intrinsic size. Replacing it withw-fulllets it fill its parent container. The day columns already useflex-1/w-full, so they distribute evenly automatically.Changes applied to all 15 calendar variants across
registryandstyles.