fix(blocks): refactor calendar-20 layout to fix visual discrepancies #8855
+37
−35
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.
fix(blocks): refactor calendar-20 layout to fix visual discrepancies
Fixes #8854
Description:
This pull request fixes a bug in the
Calendar-20block where the layout does not match the demonstration on the shadcn/ui website. The following issues have been addressed:Changes:
The main change in this pull request is the refactoring of the layout for the
Calendar-20component. The previous implementation used absolute positioning, which caused the visual discrepancies. The new implementation uses a flexbox-based layout, which is more robust and easier to maintain.How to test:
Calendar-20block to a project:npx shadcn@latest add calendar-20Note:
The project's dependencies could not be installed, so the changes have not been tested. The build, test, and lint commands are all failing due to an
esbuildversion mismatch.