Skip to content

fix: OG image gradient syntax#959

Merged
antfu merged 1 commit into
mainfrom
antfu/fix-og-gradient
Mar 19, 2026
Merged

fix: OG image gradient syntax#959
antfu merged 1 commit into
mainfrom
antfu/fix-og-gradient

Conversation

@antfu
Copy link
Copy Markdown
Member

@antfu antfu commented Mar 19, 2026

Summary

Fixed OG image prerendering errors in docs build by updating the radial gradient syntax to a format supported by the takumi renderer.

Changed from radial-gradient(50% 50% at 50% 50%, ...) to radial-gradient(circle at 50% 50%, ...) and switched background shorthand to background-image property for better CSS compatibility.

🤖 Generated with Claude Code

Replace unsupported radial-gradient(50% 50% at 50% 50%, ...) syntax with
standard circle gradient syntax (circle at 50% 50%, ...) to fix OG image
prerendering errors in docs build.

Co-Authored-By: Claude Haiku 4.5 <[email protected]>
@cloudflare-workers-and-pages
Copy link
Copy Markdown

Deploying nuxt-devtools with  Cloudflare Pages  Cloudflare Pages

Latest commit: 3d7be98
Status: ✅  Deploy successful!
Preview URL: https://50670f71.nuxt-devtools.pages.dev
Branch Preview URL: https://antfu-fix-og-gradient.nuxt-devtools.pages.dev

View logs

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Mar 19, 2026

📝 Walkthrough

Walkthrough

The pull request updates a single Vue component file by modifying the inline style of a decorative div element. The radial gradient background property is refactored from the shorthand background property to the more specific background-image property. All gradient parameters, positioning, dimensions, and other style values remain unchanged. No exported or public entities are affected by this modification.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description check ✅ Passed The description is directly related to the changeset, explaining the gradient syntax fix, the specific CSS change from radial-gradient(50% 50% at 50% 50%, ...) to radial-gradient(circle at 50% 50%, ...), and the switch from background to background-image.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Title check ✅ Passed The title 'fix: OG image gradient syntax' is directly related to the changeset - it specifically describes the CSS gradient syntax fix applied to the OG image component.

✏️ 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 antfu/fix-og-gradient
📝 Coding Plan
  • Generate coding plan for human review comments

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 and usage tips.

@antfu antfu changed the title Fix OG image gradient syntax fix: OG image gradient syntax Mar 19, 2026
@antfu antfu merged commit ce21c44 into main Mar 19, 2026
4 checks passed
@antfu antfu deleted the antfu/fix-og-gradient branch March 19, 2026 06:40
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