mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-25 08:33:07 +02:00
revert デスクトップの動画埋め込みを廃止
This commit is contained in:
parent
8f8c67ad6d
commit
952a49f749
1 changed files with 18 additions and 8 deletions
|
@ -6,11 +6,19 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="vwxdhznewyashiknzolsoihtlpicqepe" v-else>
|
<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"
|
<a class="thumbnail"
|
||||||
:href="video.url"
|
:href="video.url"
|
||||||
:style="imageStyle"
|
:style="imageStyle"
|
||||||
@click.prevent="onClick"
|
@click.prevent="onClick"
|
||||||
:title="video.name">
|
:title="video.name"
|
||||||
|
v-else>
|
||||||
%fa:R play-circle%
|
%fa:R play-circle%
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -19,13 +27,15 @@
|
||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import MkMediaVideoDialog from './media-video-dialog.vue';
|
import MkMediaVideoDialog from './media-video-dialog.vue';
|
||||||
|
|
||||||
export default Vue.extend({
|
export default Vue.extend({
|
||||||
props: {
|
props: {
|
||||||
video: {
|
video: {
|
||||||
type: Object,
|
type: Object,
|
||||||
required: true
|
required: true
|
||||||
},
|
},
|
||||||
|
inlinePlayable: {
|
||||||
|
default: false
|
||||||
|
},
|
||||||
hide: {
|
hide: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
|
@ -57,32 +67,32 @@ export default Vue.extend({
|
||||||
|
|
||||||
<style lang="stylus" scoped>
|
<style lang="stylus" scoped>
|
||||||
.vwxdhznewyashiknzolsoihtlpicqepe
|
.vwxdhznewyashiknzolsoihtlpicqepe
|
||||||
|
.video
|
||||||
|
display block
|
||||||
|
width 100%
|
||||||
|
height 100%
|
||||||
|
border-radius 4px
|
||||||
.thumbnail
|
.thumbnail
|
||||||
display flex
|
display flex
|
||||||
justify-content center
|
justify-content center
|
||||||
align-items center
|
align-items center
|
||||||
font-size 3.5em
|
font-size 3.5em
|
||||||
|
|
||||||
cursor zoom-in
|
cursor zoom-in
|
||||||
overflow hidden
|
overflow hidden
|
||||||
background-position center
|
background-position center
|
||||||
background-size cover
|
background-size cover
|
||||||
width 100%
|
width 100%
|
||||||
height 100%
|
height 100%
|
||||||
|
|
||||||
.uofhebxjdgksfmltszlxurtjnjjsvioh
|
.uofhebxjdgksfmltszlxurtjnjjsvioh
|
||||||
display flex
|
display flex
|
||||||
justify-content center
|
justify-content center
|
||||||
align-items center
|
align-items center
|
||||||
background #111
|
background #111
|
||||||
color #fff
|
color #fff
|
||||||
|
|
||||||
> div
|
> div
|
||||||
display table-cell
|
display table-cell
|
||||||
text-align center
|
text-align center
|
||||||
font-size 12px
|
font-size 12px
|
||||||
|
> b
|
||||||
> *
|
|
||||||
display block
|
display block
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in a new issue