Skip to content
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

fix: remove layout shift on the cute logo #2845

Closed
wants to merge 1 commit into from

Conversation

prashantpalikhe
Copy link

Description of Problem

Because there is not dimension specified for the logo, we get a massive layout shift

Proposed Solution

Add the aspect ratio to the cute logo's style

Additional Information

Copy link

netlify bot commented Apr 30, 2024

Deploy Preview for vuejs ready!

Name Link
🔨 Latest commit b81f7e3
🔍 Latest deploy log https://app.netlify.com/sites/vuejs/deploys/66314de932971a0008e1b7ea
😎 Deploy Preview https://deploy-preview-2845--vuejs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

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

@yyx990803
Copy link
Member

Unfortunately this doesn't really remove the layout shift because the v-if is only toggled after mount / hydration.

This is because we want to avoid sending a request for the image if the URL does not have the ?uwu query string, so it cannot be rendered during SSG.

I'll think of another way to get around this.

@yyx990803 yyx990803 closed this Apr 30, 2024
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.

None yet

2 participants