Fix: Fix style for image predefined size

This commit is contained in:
winkidney
2019-11-29 12:38:16 +08:00
committed by Isaac Bythewood
parent a21bb26dd1
commit a2bdf58943

View File

@@ -76,8 +76,8 @@ function createImageItem(pin) {
image.original_url = pinHandler.escapeUrl(pin.image.image);
image.orgianl_width = pin.image.width;
image.style = {
width: pin.image.thumbnail.width,
height: pin.image.thumbnail.height,
width: `${pin.image.thumbnail.width}px`,
height: `${pin.image.thumbnail.height}px`,
};
return image;
}