0
0
Fork 0
mirror of https://github.com/VueTubeApp/VueTube synced 2024-11-22 19:25:16 +00:00

feat: stuff quick

This commit is contained in:
Kenny 2022-05-03 13:25:06 -04:00
parent 08f8a5de86
commit 33e4e875cd

View file

@ -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;
}
}