This commit is contained in:
syuilo 2018-10-08 01:03:07 +09:00
parent 305915611e
commit 4182a0cf4c
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69
2 changed files with 5 additions and 11 deletions

View file

@ -6,19 +6,12 @@
</div>
</div>
<div class="vwxdhznewyashiknzolsoihtlpicqepe" v-else>
<video class="video"
:src="video.url"
:title="video.name"
controls
@dblclick.prevent="onClick"
ref="video"
v-if="inlinePlayable" />
<a class="thumbnail"
:href="video.url"
:style="imageStyle"
@click.prevent="onClick"
:title="video.name"
v-else>
>
%fa:R play-circle%
</a>
</div>
@ -46,7 +39,7 @@ export default Vue.extend({
computed: {
imageStyle(): any {
return {
'background-image': `url(${this.video.url})`
'background-image': null // TODO `url(${this.video.thumbnailUrl})`
};
}
},

View file

@ -9,7 +9,8 @@
:href="video.url"
target="_blank"
:style="imageStyle"
:title="video.name">
:title="video.name"
>
%fa:R play-circle%
</a>
</template>
@ -32,7 +33,7 @@ export default Vue.extend({
computed: {
imageStyle(): any {
return {
'background-image': `url(${this.video.url})`
'background-image': null // TODO `url(${this.video.thumbnailUrl})`
};
}
}