Skip to content

Commit 02321f3

Browse files
deploy: 8a335d0
1 parent 2a05752 commit 02321f3

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

components/detail/a-image.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ <h1 class="Pen-title">
817817

818818
<span class="hljs-keyword">const</span> zoom = iRatio &gt; cRatio ? iRatio / cRatio : cRatio / iRatio;
819819

820-
img.sizes = cDims.width * zoom + <span class="hljs-string">&#x27;px&#x27;</span>;
820+
img.sizes = <span class="hljs-built_in">Math</span>.min(cDims.width * zoom, <span class="hljs-built_in">window</span>.innerWidth) + <span class="hljs-string">&#x27;px&#x27;</span>;
821821
}
822822
}
823823
</pre>

components/raw/a-image/a-image-cover.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,6 @@ export default class AImageCover extends BaseView {
8484

8585
const zoom = iRatio > cRatio ? iRatio / cRatio : cRatio / iRatio;
8686

87-
img.sizes = cDims.width * zoom + 'px';
87+
img.sizes = Math.min(cDims.width * zoom, window.innerWidth) + 'px';
8888
}
8989
}

js/app.js

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

js/app.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

theme/les-verts.zip

-132 Bytes
Binary file not shown.

theme/update.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "0.39.0",
2+
"version": "0.39.1",
33
"details_url": "https://github.com/grueneschweiz/2018.gruene.ch/releases/latest",
44
"download_url": "https://grueneschweiz.github.io/2018.gruene.ch/theme/les-verts.zip"
55
}

0 commit comments

Comments
 (0)