这是indexloc提供的服务,不要输入任何密码
Skip to content

docs(fix): layout shift on home page #10424

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 2, 2025
Merged

docs(fix): layout shift on home page #10424

merged 2 commits into from
May 2, 2025

Conversation

anthonyshew
Copy link
Contributor

@anthonyshew anthonyshew commented May 2, 2025

Description

The SVGs are client-rendered, so were creating layout shift. This PR puts a div with the same dimensions in their place on the server, preserving sizing.

Testing Instructions

👀

@anthonyshew anthonyshew requested a review from a team as a code owner May 2, 2025 04:15
Copy link

vercel bot commented May 2, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 4:21am
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 4:21am
examples-gatsby-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 4:21am
examples-kitchensink-blog ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 4:21am
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 4:21am
examples-nonmonorepo ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 4:21am
examples-svelte-web ❌ Failed (Inspect) May 2, 2025 4:21am
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 4:21am
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 4:21am
turbo-site ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 2, 2025 4:21am

@anthonyshew anthonyshew merged commit 9fbfb02 into main May 2, 2025
34 of 35 checks passed
@anthonyshew anthonyshew deleted the shew/31201 branch May 2, 2025 04:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant