mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-25 05:29:07 +01:00
parent
130d8ff25d
commit
0f8246705b
@ -36,7 +36,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import anime from 'animejs';
|
import anime from 'animejs';
|
||||||
import i18n from '../../../i18n';
|
|
||||||
import {
|
import {
|
||||||
faFile,
|
faFile,
|
||||||
faFileAlt,
|
faFileAlt,
|
||||||
@ -104,7 +103,11 @@ export default Vue.extend({
|
|||||||
return 'unknown';
|
return 'unknown';
|
||||||
},
|
},
|
||||||
isThumbnailAvailable(): boolean {
|
isThumbnailAvailable(): boolean {
|
||||||
return this.file.thumbnailUrl.endsWith('?thumbnail') ? (this.is === 'image' || this.is === 'video') : true;
|
return this.file.thumbnailUrl
|
||||||
|
? this.file.thumbnailUrl.endsWith('?thumbnail')
|
||||||
|
? (this.is === 'image' || this.is === 'video')
|
||||||
|
: true
|
||||||
|
: false;
|
||||||
},
|
},
|
||||||
background(): string {
|
background(): string {
|
||||||
return this.file.properties.avgColor && this.file.properties.avgColor.length == 3
|
return this.file.properties.avgColor && this.file.properties.avgColor.length == 3
|
||||||
|
Loading…
Reference in New Issue
Block a user