Skip to content

fix(staking): remove excessive whitespace in SaaS product cards#18081

Open
konopkja wants to merge 3 commits intoethereum:devfrom
konopkja:fix/saas-card-tags-whitespace
Open

fix(staking): remove excessive whitespace in SaaS product cards#18081
konopkja wants to merge 3 commits intoethereum:devfrom
konopkja:fix/saas-card-tags-whitespace

Conversation

@konopkja
Copy link
Copy Markdown
Contributor

Description

Closes #18080.

The product cards on /staking/saas/ (and the parallel pools/solo pages, since they share StakingProductCard) render with a large band of empty space between the platform/UI tags and the considerations list.

Root cause

src/components/Staking/StakingProductsCardGrid/StakingProductCard.tsx:181 set the tags wrapper to min-h-75. In Tailwind v4 (this repo on [email protected]) min-h-75 resolves to min-height: calc(0.25rem * 75) = 18.75rem ≈ 300px. Cards rarely have more than 1–3 lines of tags (~30–80px), so 200+px of unused vertical space appears on most cards.

The minimum was introduced in commit 80ba1452c9 (Oct 2024) presumably to align the considerations-list start position across cards in the same row.

Why removing it is safe

  • The parent grid (StakingProductsCardGrid/index.tsx:17) is grid grid-cols-fill-4 gap-6. CSS Grid already stretches sibling cards to equal heights via implicit align-items: stretch.
  • The card itself is flex flex-col with mt-auto on the footer, so the "Get started" button stays pinned to the bottom regardless of internal content height.

Tradeoff

With the fixed min-height removed, the considerations list can start at slightly different y-positions across cards in the same row when tag counts differ. Total card heights remain aligned (grid stretch). If horizontal alignment of the considerations section is a hard requirement, the alternative is to shrink min-h-75 to a realistic value (e.g. min-h-20 ≈ 80px) instead of removing it. Happy to swap if reviewers prefer.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Affected pages

  • /staking/saas/
  • /staking/pools/
  • /staking/solo/

(All three render StakingProductCard.)

Testing

  • Repro confirmed via screenshot in Bug report #18080.
  • pnpm lint passes for the touched file.
  • Reviewers: please verify the row alignment tradeoff above looks acceptable on /staking/saas/.

Screenshots

The bug is shown in #18080 (excessive whitespace below tag row). I don't have a deployed preview yet — Vercel preview will show the fix.

The tags wrapper used `min-h-75` (300px in Tailwind v4), which reserved
~200px of empty space below the tags on cards with 1-3 tag rows. Cards
already align via the parent CSS Grid's implicit `align-items: stretch`,
so the fixed minimum is unnecessary.

Closes ethereum#18080
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 30, 2026

Deploy Preview for ethereumorg ready!

Name Link
🔨 Latest commit f20a41e
🔍 Latest deploy log https://app.netlify.com/projects/ethereumorg/deploys/69f3c7ce16d636000891e07f
😎 Deploy Preview https://deploy-preview-18081.ethereum.it
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
7 paths audited
Performance: 67 (🟢 up 13 from production)
Accessibility: 96 (🟢 up 3 from production)
Best Practices: 100 (no change from production)
SEO: 98 (🔴 down 1 from production)
PWA: 59 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

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.

Bug report

2 participants