Repository navigation
fix(www): pricing table spacing and sticky offset - #49532
pamelachia merged 5 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
6 Skipped Deployments
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review. 📝 WalkthroughWalkthroughThe pricing comparison table now measures its sticky header and exposes the result through a CSS custom property. Desktop category headers use this value for positioning, and plan-value cells use updated vertical spacing. ChangesPricing table sticky layout
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to This PR adjusts pricing-table spacing and dynamically aligns category headers with the sticky plan header. No actionable merge-blocking risk remains beyond normal checks and review. Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
Full details: Docstring CoverageExplanation No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 2 files. Full details: Description checkExplanation The description explains the current and new behavior, implementation details, testing, visual changes, and linked issue. It omits the required CONTRIBUTING.md confirmation and explicit change-type section, but it is otherwise complete. ✨ Finishing Touches📝 Generate docstrings
🧪 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 |
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
Braintrust eval reportEvals in progress... ⌛ |
…for-pitr-archiving-stale * origin/master: (26 commits) chore(docs): add Simon Tomlinson to humans.txt (#49547) fix(docs): make code blocks reachable and readable by keyboard and screen reader (#49562) feat: update mgmt api docs (#49128) fix: display request body Array<object> schema/fields in Management API Reference (#49575) Set up feature preview for explorer (#49602) docs(troubleshooting): add postgres_changes not delivering guide (#48997) chore: Update API types (#49598) refactor(studio): fetch MCP tool→FGA map from mgmt-api endpoint (#49225) Add go page: Postgres Summit US 2026 contest (#49597) Add Lingo.dev customer case study (#49595) fix(studio): hide legacy API keys on High Availability projects (#49552) [FE-4246] fix(studio): resolve notebook database labels (#49554) fix(studio): resolve dirty notebook save conflicts (#49540) fix(studio): make menu links reliable (#49584) [FE-3717] feat(studio): Multigres cluster topology diagram (#49298) feat(www): homepage json-ld, canonical, 404 links (#49533) refine role impersonation popover (#49467) feat(studio): move read replica creation to a dialog (#49516) fix(www): pricing table spacing and sticky offset (#49532) fix(studio): treat region flags as decorative by default (#49574) ...
Multi-line cells in the /pricing comparison table rendered as one cramped block once lines wrapped: the stacked values had no gap between entries, and the continuation lines'
leading-4is a no-op attext-xs. At the same narrow desktop widths (1024 to 1280px), category headers clipped behind the sticky plan header because their hardcodedtop-[108px] xl:top-[84px]offsets desync from the plan header's variable height.Changed:
pl-6 pr-2with no vertical padding, so tall multi-line cells pressed text against the row dividers; they now carrypy-5like the row-label column (text ink sits ~21px off both borders, measured).gap-2between entries while wrapped lines inside one entry stay tight (leading-4), so each price reads as its own block. Two earlier iterations that only widened the entry gap (gap-1, thengap-2with looserleading-5wraps) reviewed as still-cramped; the missing cell padding was the dominant cause. Mobile untouched.--pricing-category-topas a CSS variable on the table; the category header consumes it viavar(), keeping the old 108px/84px values as pre-hydration fallbacks so SSR paint is unchanged. Runs in a layout effect so the first client paint already has the measured value.Note: I rejected re-tuning the hardcoded offsets: numbers desyncing from the header's content-driven height is the root cause, and new constants re-break on the next copy or breakpoint change.
Before / after
Before (prod: multi-line prices pressed against the row dividers as one dense block; rows clipped under the sticky category header):

After (this PR: padded cells, each price its own block, headers pin flush):

To test
Tested on the Vercel preview (Playwright, measured values in parens):
--pricing-category-topalready applied (151px at 1150px width) and the pinned header flushLinear