mirror of
https://github.com/VueTubeApp/VueTube
synced 2024-11-22 19:25:16 +00:00
feat: stuff quick
This commit is contained in:
parent
08f8a5de86
commit
33e4e875cd
1 changed files with 10 additions and 7 deletions
|
@ -2,8 +2,8 @@
|
|||
<div>
|
||||
|
||||
|
||||
<v-btn class="centerVideoControls" @click="togglePlaying()">
|
||||
<v-icon v-text="playing ? 'mdi-pause' : 'mdi-play' " ref="pausePlayIndicator" />
|
||||
<v-btn class="centerVideoControls" @click="togglePlaying()" text>
|
||||
<v-icon x-large v-text="playing ? 'mdi-pause' : 'mdi-play' " ref="pausePlayIndicator" />
|
||||
</v-btn>
|
||||
|
||||
|
||||
|
@ -17,7 +17,10 @@
|
|||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
}
|
||||
|
||||
.pausePlay {
|
||||
min-height: 5em;
|
||||
min-width: 5em;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script>
|
||||
|
@ -33,11 +36,11 @@
|
|||
methods: {
|
||||
togglePlaying() {
|
||||
if (this.video.paused) {
|
||||
this.video.play()
|
||||
this.playing = true;
|
||||
this.video.play()
|
||||
this.playing = true;
|
||||
} else {
|
||||
this.video.pause()
|
||||
this.playing = false;
|
||||
this.video.pause()
|
||||
this.playing = false;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue