Skip to content

Commit

Permalink
fix(docs): add height & width to image to avoid layout shift (#777)
Browse files Browse the repository at this point in the history
Noticed we were missing the height and width for the image, so we were
getting some shifting.

The dimensions are chosen from what was being rendered.
  • Loading branch information
sbdchd authored Jan 11, 2022
1 parent a34e5a0 commit e257769
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion docs/pages/en/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,11 @@ function HomeSplash(props) {
return (
<SplashContainer>
<div className="projLogo">
<Logo img_src={`${baseUrl}img/kodiak-pr-flow.svg`} />
<Logo
img_src={`${baseUrl}img/kodiak-pr-flow.svg`}
height={349}
width={271}
/>
</div>
<div className="inner">
<ProjectTitle />
Expand Down

0 comments on commit e257769

Please sign in to comment.