Adding "fit" property inside Props Option Reference#25
Adding "fit" property inside Props Option Reference#25rahul-vyas-dev merged 1 commit intoAOSSIE-Org:mainfrom
Conversation
WalkthroughThe pull request adds documentation for a new Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Possibly related PRs
Suggested labels
Poem
🚥 Pre-merge checks | ✅ 2✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@README.md`:
- Line 291: Update the README table row for the `fit` property to a clear,
complete description: state that `fit` controls image sizing with the two
options and what each does (e.g., "Controls image sizing: 'cover' fills the area
and may crop, 'contain' fits the image without cropping"). Also consider
reordering the `fit` row to follow `description` to match the property order in
src/types/index.ts so the table reads consistently.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: ASSERTIVE
Plan: Pro
Run ID: 56cb4b16-0074-4d96-855b-7797668a0af3
📒 Files selected for processing (1)
README.md
Added fit inside the Props Option Reference to let the user know about 'fit' props inside hero.
Checklist
We encourage contributors to use AI tools responsibly when creating Pull Requests. While AI can be a valuable aid, it is essential to ensure that your contributions meet the task requirements, build successfully, include relevant tests, and pass all linters. Submissions that do not meet these standards may be closed without warning to maintain the quality and integrity of the project. Please take the time to understand the changes you are proposing and their impact.
Summary by CodeRabbit
hero.fitprop to control how images are displayed in the hero section. Use "cover" to scale images while maintaining aspect ratio, or "contain" to prevent cropping and display the full image. This is particularly useful for logo-style images that need to remain completely visible without any portions being cut off.