mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-24 12:19:41 +00:00
Fix image thumbnail cover size
This commit is contained in:
@@ -3340,10 +3340,6 @@ button.module-image__border-overlay:focus {
|
|||||||
&.module-image:hover::before {
|
&.module-image:hover::before {
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
&.module-image .module-image__image {
|
|
||||||
aspect-ratio: 1 / 1;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Module: Staged Generic Attachment
|
// Module: Staged Generic Attachment
|
||||||
|
|||||||
@@ -59,6 +59,9 @@ export function ImageOrBlurhash({
|
|||||||
? `${intrinsicWidth} / ${intrinsicHeight}`
|
? `${intrinsicWidth} / ${intrinsicHeight}`
|
||||||
: undefined,
|
: undefined,
|
||||||
|
|
||||||
|
width: '100%',
|
||||||
|
height: '100%',
|
||||||
|
|
||||||
// Preserve aspect ratio
|
// Preserve aspect ratio
|
||||||
backgroundSize: 'cover',
|
backgroundSize: 'cover',
|
||||||
backgroundPosition: 'center',
|
backgroundPosition: 'center',
|
||||||
|
|||||||
Reference in New Issue
Block a user