Skip to content

Commit cc4c937

Browse files
committed
Website: explicitly size demo image on home page
Prevent re-layouts when the image finally loads.
1 parent e241d71 commit cc4c937

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

website/public/index.ejs.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,14 @@ <h1>quick-lint-js</h1>
158158
<p><a href="demo/">Try it out in your browser.</a></p>
159159

160160
<figure>
161-
<picture style="width: 100%">
161+
<picture style="width: 100%; height: auto" width="1324" height="526">
162162
<source srcset="vscode-demo.webp" type="image/webp" />
163163
<img
164164
src="vscode-demo.png"
165-
style="width: 100%"
165+
style="width: 100%; height: auto"
166166
alt="quick-lint-js running in Visual Studio Code"
167+
width="1324"
168+
height="526"
167169
/>
168170
</picture>
169171
</figure>

0 commit comments

Comments
 (0)