diff --git a/build/wp-printable-gallery/render.php b/build/wp-printable-gallery/render.php index 3ae35be..57f84eb 100644 --- a/build/wp-printable-gallery/render.php +++ b/build/wp-printable-gallery/render.php @@ -10,7 +10,7 @@ 2, - 'size' => 'medium', + 'size' => 'gallery', 'link' => 'file', ]; if ( array_key_exists('print', $_GET)) { diff --git a/build/wp-printable-gallery/style-index-rtl.css b/build/wp-printable-gallery/style-index-rtl.css index 8b13789..3730bcd 100644 --- a/build/wp-printable-gallery/style-index-rtl.css +++ b/build/wp-printable-gallery/style-index-rtl.css @@ -1 +1 @@ - +.gallery figure img{aspect-ratio:16/9;-o-object-fit:cover;object-fit:cover} diff --git a/build/wp-printable-gallery/style-index.css b/build/wp-printable-gallery/style-index.css index 8b13789..3730bcd 100644 --- a/build/wp-printable-gallery/style-index.css +++ b/build/wp-printable-gallery/style-index.css @@ -1 +1 @@ - +.gallery figure img{aspect-ratio:16/9;-o-object-fit:cover;object-fit:cover} diff --git a/src/wp-printable-gallery/render.php b/src/wp-printable-gallery/render.php index 3ae35be..57f84eb 100644 --- a/src/wp-printable-gallery/render.php +++ b/src/wp-printable-gallery/render.php @@ -10,7 +10,7 @@ 2, - 'size' => 'medium', + 'size' => 'gallery', 'link' => 'file', ]; if ( array_key_exists('print', $_GET)) { diff --git a/src/wp-printable-gallery/style.scss b/src/wp-printable-gallery/style.scss index 265745e..c25854b 100644 --- a/src/wp-printable-gallery/style.scss +++ b/src/wp-printable-gallery/style.scss @@ -10,3 +10,8 @@ // color: #fff; // padding: 2px; } + +.gallery figure img { + object-fit: cover; + aspect-ratio: 16/9; +}