mobile improvements
This commit is contained in:
parent
eb680fc932
commit
ca35be9dd1
@ -4,8 +4,8 @@
|
|||||||
<ProgressBar v-if="player.loaded" />
|
<ProgressBar v-if="player.loaded" />
|
||||||
<div v-if="player.loaded" class="player">
|
<div v-if="player.loaded" class="player">
|
||||||
<img :src="player.episode.episodeImage">
|
<img :src="player.episode.episodeImage">
|
||||||
<Infos />
|
<Infos class="infos" />
|
||||||
<Controls />
|
<Controls class="controls" />
|
||||||
<Timer class="timer" />
|
<Timer class="timer" />
|
||||||
<Volume class="volume" />
|
<Volume class="volume" />
|
||||||
</div>
|
</div>
|
||||||
@ -63,4 +63,14 @@ export default {
|
|||||||
.volume {
|
.volume {
|
||||||
width: 10%;
|
width: 10%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
.infos {
|
||||||
|
flex: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.timer, .volume {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,14 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="controls">
|
<div class="controls">
|
||||||
<PauseButton v-if="!player.paused"
|
<PauseButton v-if="!player.paused"
|
||||||
class="pointer"
|
class="pointer pause"
|
||||||
:size="50"
|
:size="50"
|
||||||
@click="$store.dispatch('player/pause')" />
|
@click="$store.dispatch('player/pause')" />
|
||||||
<PlayButton v-if="player.paused"
|
<PlayButton v-if="player.paused"
|
||||||
class="pointer"
|
class="pointer play"
|
||||||
:size="50"
|
:size="50"
|
||||||
@click="$store.dispatch('player/play')" />
|
@click="$store.dispatch('player/play')" />
|
||||||
<StopButton class="pointer"
|
<StopButton class="pointer stop"
|
||||||
:size="30"
|
:size="30"
|
||||||
@click="$store.dispatch('player/stop')" />
|
@click="$store.dispatch('player/stop')" />
|
||||||
</div>
|
</div>
|
||||||
@ -42,4 +42,10 @@ export default {
|
|||||||
.pointer {
|
.pointer {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
.stop {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<a :href="player.episode.episodeLink" target="_blank">
|
<a class="episode" :href="player.episode.episodeLink" target="_blank">
|
||||||
<strong>{{ player.episode.episodeName }}</strong>
|
<strong>{{ player.episode.episodeName }}</strong>
|
||||||
</a>
|
</a>
|
||||||
<router-link :to="player.podcastUrl">
|
<router-link class="podcast" :to="player.podcastUrl">
|
||||||
<i>{{ player.episode.podcastName }}</i>
|
<i>{{ player.episode.podcastName }}</i>
|
||||||
</router-link>
|
</router-link>
|
||||||
</div>
|
</div>
|
||||||
@ -27,4 +27,10 @@ export default {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
width: 40%;
|
width: 40%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-width: 768px) {
|
||||||
|
.podcast {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in New Issue
Block a user