fix(showcase): remove fixed grid rows to prevent layout stretching on devtools resize by Moamal-2000 · Pull Request #14 · harshjdhv/componentry · GitHub
Skip to content

fix(showcase): remove fixed grid rows to prevent layout stretching on devtools resize - #14

Merged
harshjdhv merged 1 commit into
harshjdhv:mainfrom
Moamal-2000:fix/home-showcase-grid-layout
Jul 25, 2026
Merged

fix(showcase): remove fixed grid rows to prevent layout stretching on devtools resize#14
harshjdhv merged 1 commit into
harshjdhv:mainfrom
Moamal-2000:fix/home-showcase-grid-layout

Conversation

@Moamal-2000

@Moamal-2000 Moamal-2000 commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

Fixes an issue where the home showcase section (data-home-showcase) expanded infinitely in height when toggling DevTools or resizing the viewport below 992px.

Root Cause

The showcase grid wrapper had both md:grid-rows-3 and md:auto-rows-[300px] applied simultaneously. When Framer Motion triggered the whileInView animations upon viewport re-calculation (e.g., opening DevTools), implicit grid items exceeded the fixed row bounds, causing continuous element layout recalculations and breaking regular page scrolling.

Changes Made

  • Removed md:grid-rows-3 from the showcase <motion.div> grid container.
  • Allowed CSS Grid to handle implicit row additions dynamically via md:auto-rows-[300px].

How to Reproduce the Issue

  1. Navigate to the Home page on the main branch (or live site).
  2. Open Browser DevTools
  3. Set the viewport width to below 992px.
  4. Scroll down until the data-home-showcase section
  5. Notice how the showcase container expands vertically uncontrollably, stretching the entire page height and breaking scrolling.

Summary by CodeRabbit

  • Style
    • Adjusted the responsive showcase grid layout for improved consistency across screen sizes.

@vercel

vercel Bot commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: eae73e81-7f1b-4d0d-ab54-810134874bdd

📥 Commits

Reviewing files that changed from the base of the PR and between 0a08e2e and e12822b.

📒 Files selected for processing (1)
  • apps/web/app/page.tsx

📝 Walkthrough

Walkthrough

The showcase section’s grid wrapper no longer applies md:grid-rows-3, while retaining its existing base sizing and md:grid-cols-4 configuration.

Changes

Showcase layout

Layer / File(s) Summary
Responsive showcase grid
apps/web/app/page.tsx
Removes the medium-breakpoint three-row constraint from the showcase grid wrapper while preserving its column layout.

Estimated code review effort: 1 (Trivial) | ~2 minutes

Suggested reviewers: harshjdhv

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the showcase grid layout fix and its resize-related impact.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@harshjdhv

Copy link
Copy Markdown
Owner

@harshjdhv
harshjdhv merged commit 5403934 into harshjdhv:main Jul 25, 2026
1 of 2 checks passed
@Moamal-2000
Moamal-2000 deleted the fix/home-showcase-grid-layout branch July 25, 2026 18:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants