mirror of
https://github.com/pinry/pinry.git
synced 2025-11-18 02:40:40 +01:00
Fix: Fix style for image predefined size
This commit is contained in:
committed by
Isaac Bythewood
parent
a21bb26dd1
commit
a2bdf58943
@@ -76,8 +76,8 @@ function createImageItem(pin) {
|
|||||||
image.original_url = pinHandler.escapeUrl(pin.image.image);
|
image.original_url = pinHandler.escapeUrl(pin.image.image);
|
||||||
image.orgianl_width = pin.image.width;
|
image.orgianl_width = pin.image.width;
|
||||||
image.style = {
|
image.style = {
|
||||||
width: pin.image.thumbnail.width,
|
width: `${pin.image.thumbnail.width}px`,
|
||||||
height: pin.image.thumbnail.height,
|
height: `${pin.image.thumbnail.height}px`,
|
||||||
};
|
};
|
||||||
return image;
|
return image;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user