Fix project card text overflow on landing page#670
Fix project card text overflow on landing page#670madhavansingh wants to merge 3 commits intoAOSSIE-Org:mainfrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughCardEffect.jsx now computes a camelCase-aware Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 `@src/components/home/CardEffect.jsx`:
- Around line 7-11: The code calls heading.replace(...) which will throw if
heading is null/undefined; update the wrappedHeading computation (the variable
wrappedHeading inside CardEffect.jsx) to coerce heading to a safe string before
calling replace (for example use heading ?? '' or String(heading)) and then
apply the two .replace(...) calls so replacement only runs on a guaranteed
string.
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: b6bd9693-bf78-4ab6-927c-c27af8224264
📒 Files selected for processing (1)
src/components/home/CardEffect.jsx
|
Hi! I have opened a PR to fix this issue. Please let me know if any changes are required. I am also looking forward to contributing more and preparing for GSoC 2026. |
|
Hi @madhavansingh , since you are working on this issue. Can you see that in the 1st image under (After), the word perspective is still reaching the edges of the card? For a better UI/UX, you can still update your PR so that these edge cases are handled either with proper padding or another method you come up with. |
|
Hi @reach2saksham, thanks for pointing that out. I’ve updated the styling to properly handle the edge cases you mentioned. The card content now has improved padding and safe word wrapping so that long titles (like "Perspective" or longer project names) no longer reach the edges of the card. I’ve pushed the updated fix to this PR. Please find the updated screenshots below showing the corrected layout.
Let me know if any further adjustments are needed. Thanks again for the helpful feedback! |
|
@madhavansingh , This feels much better. |


Addressed Issues:
Fixes #668
Screenshots:
Before Fix
After Fix
Additional Notes:
This PR fixes a UI issue where project titles overflow outside the project card container on the landing page.
The fix ensures that long titles wrap correctly and remain within the card boundaries across different screen sizes, improving the layout and overall user experience.
I am also interested in contributing further and preparing for GSoC 2026.
AI Usage Disclosure:
Checklist
I am also interested in contributing further and preparing for GSoC 2026.
Summary by CodeRabbit
Improvements
Accessibility
Visual