Skip to content

Fix sponsor hydrate wrapper sizing#993

Merged
tannerlinsley merged 1 commit into
mainfrom
taren/fix-sponsor-hydrate-wrapper
Jun 16, 2026
Merged

Fix sponsor hydrate wrapper sizing#993
tannerlinsley merged 1 commit into
mainfrom
taren/fix-sponsor-hydrate-wrapper

Conversation

@tannerlinsley

@tannerlinsley tannerlinsley commented Jun 16, 2026

Copy link
Copy Markdown
Member

Summary

  • Size the Hydrate wrapper inside the sponsor pack aspect-ratio container.
  • Restores non-zero ParentSize measurements so OSS sponsor bubbles render after the deferred hydration migration.

Validation

  • pnpm build
  • pnpm test
  • Browser smoke check on /#sponsors: 140 visible .spon-link anchors rendered.

Summary by CodeRabbit

  • Style
    • Improved sponsor section layout to better utilize available space.

@coderabbitai

coderabbitai Bot commented Jun 16, 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

Run ID: 4128395a-9356-49a4-83c9-99ae96a16a98

📥 Commits

Reviewing files that changed from the base of the PR and between d4069c8 and 4573242.

📒 Files selected for processing (1)
  • src/components/LazySponsorSection.tsx

📝 Walkthrough

Walkthrough

A single Tailwind className string in LazySponsorSection is updated to add [&>div]:h-full and [&>div]:w-full, forcing direct child div elements to occupy full height and width within the sponsor pack container.

Changes

Sponsor Container Child Sizing

Layer / File(s) Summary
Container className extension
src/components/LazySponsorSection.tsx
Adds [&>div]:h-full and [&>div]:w-full Tailwind arbitrary variant classes to the sponsor pack container's className, making direct child div elements fill the container's full dimensions.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

A bunny hopped in, made a quick little fix,
The sponsor divs stretched with a couple of ticks.
Full height! Full width! they joyfully said,
No more cramped boxes, they grew instead.
🐇✨ One line changed, the layout is spread!

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Fix sponsor hydrate wrapper sizing' directly addresses the main change: applying Tailwind styles to size nested div elements in the sponsor pack container, which resolves the hydrate wrapper sizing issue mentioned in the PR objectives.
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.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch taren/fix-sponsor-hydrate-wrapper

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

@tannerlinsley tannerlinsley merged commit d3375be into main Jun 16, 2026
7 checks passed
@tannerlinsley tannerlinsley deleted the taren/fix-sponsor-hydrate-wrapper branch June 16, 2026 15:55
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.

1 participant