From a2bdf58943b55fd4540a034602b2d56ec6d8fa30 Mon Sep 17 00:00:00 2001 From: winkidney Date: Fri, 29 Nov 2019 12:38:16 +0800 Subject: [PATCH] Fix: Fix style for image predefined size --- pinry-spa/src/components/Pins.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pinry-spa/src/components/Pins.vue b/pinry-spa/src/components/Pins.vue index d72fa6e..ecc4125 100644 --- a/pinry-spa/src/components/Pins.vue +++ b/pinry-spa/src/components/Pins.vue @@ -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; }