mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +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 {
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
&.module-image .module-image__image {
|
||||
aspect-ratio: 1 / 1;
|
||||
}
|
||||
}
|
||||
|
||||
// Module: Staged Generic Attachment
|
||||
|
||||
@@ -59,6 +59,9 @@ export function ImageOrBlurhash({
|
||||
? `${intrinsicWidth} / ${intrinsicHeight}`
|
||||
: undefined,
|
||||
|
||||
width: '100%',
|
||||
height: '100%',
|
||||
|
||||
// Preserve aspect ratio
|
||||
backgroundSize: 'cover',
|
||||
backgroundPosition: 'center',
|
||||
|
||||
Reference in New Issue
Block a user