Skip to content

fix: reduce dead space in blog feed section#63

Closed
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-blog-feed-spacing-issue
Closed

fix: reduce dead space in blog feed section#63
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-blog-feed-spacing-issue

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 25, 2026

Fixes the excess vertical whitespace ("dead space") reported in the blog feed section.

Changes in src/components/sections/RssFeed.svelte

1. Tighten section padding (desktop)

Added a scoped CSS override that caps the section's top/bottom padding at 4 rem on all screen sizes, replacing the global section-pad rule that applied 6 rem on ≥1024 px screens. The section still keeps class="section-pad" so mobile spacing (4 rem) is unchanged.

2. Reduce heading-row bottom margin

Changed the heading div from mb-10 (2.5 rem / 40 px) to mb-6 (1.5 rem / 24 px). Unlike Services and Portfolio — which fill their heading block with a subtitle paragraph — the blog feed heading only contains the <h2> and the "View all posts" link, so the larger margin was creating unnecessary dead space before the card grid.

3. Clamp description text (-webkit-line-clamp: 4)

Added a 4-line clamp to .feed-desc. Without this, CSS Grid equalises row heights to match the tallest card, and cards with short excerpts end up with a large blank area inside their description element (where flex: 1 stretches the <p> tag). The clamp caps the visible text so descriptions stay visually consistent across cards.

Testing

  • All 160 unit tests pass (npm test)
  • Production build succeeds (npm run build)

Agent-Logs-Url: https://github.com/jaypatrick/jk.com/sessions/9d7b1782-8b6a-48d4-8965-9a185a781635

Co-authored-by: jaypatrick <1800595+jaypatrick@users.noreply.github.com>
Copilot AI requested a review from jaypatrick May 25, 2026 02:47
@jaypatrick jaypatrick marked this pull request as ready for review May 25, 2026 02:47
Copilot AI review requested due to automatic review settings May 25, 2026 02:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Reduces excess vertical whitespace in the homepage/blog feed “Latest Thoughts” section by tightening spacing and constraining card excerpt height.

Changes:

  • Reduced the heading-row bottom margin (mb-10mb-6) to tighten spacing above the grid.
  • Added a component-scoped section padding override to keep top/bottom padding at 4rem on desktop.
  • Added a 4-line clamp to .feed-desc to reduce tall-card-driven row height in the grid.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/components/sections/RssFeed.svelte Outdated
Comment on lines 265 to +270
margin-bottom: 1.25rem;
flex: 1;
display: -webkit-box;
-webkit-line-clamp: 4;
-webkit-box-orient: vertical;
overflow: hidden;
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@jaypatrick jaypatrick closed this May 25, 2026
@jaypatrick jaypatrick deleted the copilot/fix-blog-feed-spacing-issue branch May 25, 2026 06:25
@jaypatrick jaypatrick restored the copilot/fix-blog-feed-spacing-issue branch May 25, 2026 06:25
Copilot stopped work on behalf of jaypatrick due to an error May 25, 2026 06:26
@jaypatrick jaypatrick deleted the copilot/fix-blog-feed-spacing-issue branch May 25, 2026 06:26
@jaypatrick jaypatrick restored the copilot/fix-blog-feed-spacing-issue branch May 25, 2026 06:26
@jaypatrick jaypatrick deleted the copilot/fix-blog-feed-spacing-issue branch May 25, 2026 06:26
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.

3 participants