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

Set width and height on the images in the footer to reduce the layout shift #2510

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

MTRNord
Copy link
Collaborator

@MTRNord MTRNord commented Sep 26, 2024

Fixes #2463

This changes nothing visual apart from causing the width and height being allocated before the css loaded which causes the footer to shift less vertically while images are loading.

Copy link

Deploying matrix-website with  Cloudflare Pages  Cloudflare Pages

Latest commit: 99d4f31
Status: ✅  Deploy successful!
Preview URL: https://ad1e9899.matrix-website.pages.dev
Branch Preview URL: https://mtrnord-fix-footer-layout-sh.matrix-website.pages.dev

View logs

Copy link
Contributor

@thibaultamartin thibaultamartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very good, thanks!

@MTRNord MTRNord merged commit ef00969 into main Oct 10, 2024
3 checks passed
@MTRNord MTRNord deleted the MTRNord/fix-footer-layout-shift branch October 10, 2024 14:56
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.

Layout shift on the footer
2 participants