Fix image thumbnail cover size

This commit is contained in:
Jamie Kyle
2025-08-11 10:22:54 -07:00
committed by GitHub
parent 5dfd779649
commit 3e857b9a99
2 changed files with 3 additions and 4 deletions

View File

@@ -3340,10 +3340,6 @@ button.module-image__border-overlay:focus {
&.module-image:hover::before {
opacity: 1;
}
&.module-image .module-image__image {
aspect-ratio: 1 / 1;
}
}
// Module: Staged Generic Attachment

View File

@@ -59,6 +59,9 @@ export function ImageOrBlurhash({
? `${intrinsicWidth} / ${intrinsicHeight}`
: undefined,
width: '100%',
height: '100%',
// Preserve aspect ratio
backgroundSize: 'cover',
backgroundPosition: 'center',