Fixing image sizes and ratio

This commit is contained in:
Eric van der Vlist 2025-03-29 11:50:40 +01:00
parent 7e9fde87bc
commit 1f78be0f98
5 changed files with 9 additions and 4 deletions

View File

@ -10,7 +10,7 @@
<?php
$gallery_attributes = [
'columns' => 2,
'size' => 'medium',
'size' => 'gallery',
'link' => 'file',
];
if ( array_key_exists('print', $_GET)) {

View File

@ -1 +1 @@
.gallery figure img{aspect-ratio:16/9;-o-object-fit:cover;object-fit:cover}

View File

@ -1 +1 @@
.gallery figure img{aspect-ratio:16/9;-o-object-fit:cover;object-fit:cover}

View File

@ -10,7 +10,7 @@
<?php
$gallery_attributes = [
'columns' => 2,
'size' => 'medium',
'size' => 'gallery',
'link' => 'file',
];
if ( array_key_exists('print', $_GET)) {

View File

@ -10,3 +10,8 @@
// color: #fff;
// padding: 2px;
}
.gallery figure img {
object-fit: cover;
aspect-ratio: 16/9;
}