diff --git a/package.json b/package.json index 68cc9657..7472bd7d 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "app", - "version": "5.6.19", + "version": "5.6.20", "description": "", "author": "", "license": "ISC", diff --git a/src/co/bookmarks/item/cover/view.js b/src/co/bookmarks/item/cover/view.js index c3768b44..a115ee5d 100644 --- a/src/co/bookmarks/item/cover/view.js +++ b/src/co/bookmarks/item/cover/view.js @@ -97,7 +97,6 @@ export default class BookmarkItemCover extends React.PureComponent { width={width} height={height} alt=' ' - loading={view=='masonry' ? 'eager' : 'lazy'} {...etc} src={uri && `${uri}?mode=${mode}&fill=solid&width=${width||''}&ar=${ar||''}&dpr=${dpr[view]||dpr.default}`} //type='image/jpeg' diff --git a/src/co/picker/image/index.js b/src/co/picker/image/index.js index b311438f..fab4f3d3 100644 --- a/src/co/picker/image/index.js +++ b/src/co/picker/image/index.js @@ -61,8 +61,7 @@ export default class PickerImage extends React.Component { autoFocus={this.props.selected == link} onClick={()=>this.onLink(link)}> + src={`${getThumbUri(link)}?mode=crop&width=128&height=96&dpr=${window.devicePixelRatio||1}`} /> render() { diff --git a/src/target/extension/getMeta/parse.js b/src/target/extension/getMeta/parse.js index 68639c44..e483121f 100644 --- a/src/target/extension/getMeta/parse.js +++ b/src/target/extension/getMeta/parse.js @@ -130,12 +130,16 @@ function getItem() { ...grabImages() ].filter((value, index, self)=>self.indexOf(value) === index) - if (images.length) + if (images.length) { item.media = images.map(link=>({ type: 'image', link })) + if (!item.cover) + item.cover = images[0] + } + //limit length if (item.title && item.title.length) item.title = item.title.substr(0, 1000)