Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #108 from B77Mills/fixImageCropIssue
Browse files Browse the repository at this point in the history
Display image in native or cropped aspect ratio
  • Loading branch information
zarathustra323 authored Jun 18, 2021
2 parents e843b2e + eea2858 commit c046176
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/marko-web-photoswipe/components/images.marko
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@ $ const items = images.map((image) => {
const defaultOptions = {
w: maxSize,
h: round(maxSize / (16 / 9)), // default 16:9 height
fit: "crop",
fit: "fill",
fill: "solid",
};
const imageOptions = {
Expand Down

0 comments on commit c046176

Please sign in to comment.