浏览代码

Feature: Add predefined size for image to make waterfall resize faster

pull/169/head
winkidney 5 年前
committed by Isaac Bythewood
父节点
当前提交
437c802b42
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. +5
    -0
      pinry-spa/src/components/Pins.vue

+ 5
- 0
pinry-spa/src/components/Pins.vue 查看文件

@@ -17,6 +17,7 @@
<img :src="item.url"
@click="openPreview(item)"
alt="item.description"
:style="item.style"
class="pin-preview-image">
<div class="pin-footer">
<div class="description" v-show="item.description"><p>{{ item.description }}</p></div>
@@ -74,6 +75,10 @@ function createImageItem(pin) {
image.avatar = `//gravatar.com/avatar/${pin.submitter.gravatar}`;
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,
};
return image;
}



正在加载...
取消
保存