wip
This commit is contained in:
		| @@ -16,7 +16,7 @@ | ||||
| 		<p>%i18n:@banner%</p> | ||||
| 	</div> | ||||
| 	<div class="thumbnail" ref="thumbnail" :style="`background-color: ${ background }`"> | ||||
| 		<img :src="file.url" alt="" @load="onThumbnailLoaded"/> | ||||
| 		<img :src="file.thumbnailUrl" alt="" @load="onThumbnailLoaded"/> | ||||
| 	</div> | ||||
| 	<p class="name"> | ||||
| 		<span>{{ file.name.lastIndexOf('.') != -1 ? file.name.substr(0, file.name.lastIndexOf('.')) : file.name }}</span> | ||||
|   | ||||
| @@ -37,7 +37,7 @@ export default Vue.extend({ | ||||
| 		style(): any { | ||||
| 			return { | ||||
| 				'background-color': this.image.properties.avgColor && this.image.properties.avgColor.length == 3 ? `rgb(${this.image.properties.avgColor.join(',')})` : 'transparent', | ||||
| 				'background-image': this.raw ? `url(${this.image.url})` : `url(${this.image.url})` | ||||
| 				'background-image': this.raw ? `url(${this.image.url})` : `url(${this.image.thumbnailUrl})` | ||||
| 			}; | ||||
| 		} | ||||
| 	}, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo