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

feat/fix layout shifts #1392

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

denisx
Copy link

@denisx denisx commented May 14, 2024

What you did:

Adds image dimensions to fix layout shifts

What happened:

When images don't have dimensions, layout can shift at slow connection

Copy link

netlify bot commented May 14, 2024

Deploy Preview for testing-library ready!

Name Link
🔨 Latest commit cdcda47
🔍 Latest deploy log https://app.netlify.com/sites/testing-library/deploys/665635b49c6a1d0008aa4556
😎 Deploy Preview https://deploy-preview-1392--testing-library.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.

@denisx denisx marked this pull request as ready for review May 14, 2024 21:39
<Logo img_src={`${baseUrl}img/logo-large.png`} />
<Logo
img_src={`${baseUrl}img/logo-large.png`}
img_width={128}
Copy link
Member

Choose a reason for hiding this comment

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

I prefer refactoring all of these to be the same as the other component (camelCased) instead of adding more props that don't follow normal conventions. Wdyt?

Copy link
Author

Choose a reason for hiding this comment

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

i make pr via local file conventions. because 1 pr = 1 feature. if you want, i can add refactoring, too.
but it is not usual way. it is better to do new pr with refactoring (change to camel, and add linter to keep it in control)

Copy link
Member

Choose a reason for hiding this comment

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

Since we're adding another prop here, I prefer seeing it done in this PR to follow the "boy scout rule". No need for a lint rule though :)

Copy link
Author

Choose a reason for hiding this comment

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

fix only my new code, or small refactoring for all this part?

Copy link
Author

Choose a reason for hiding this comment

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

"I prefer refactoring all of these" - ok

Copy link
Author

Choose a reason for hiding this comment

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

make update at pr

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