fix style glitch
This commit is contained in:
parent
783c7b2cbe
commit
5dfc5e4dee
|
@ -7410,6 +7410,7 @@ a.navbar-item.is-active {
|
||||||
background: linear-gradient(transparent 1em, whitesmoke); }
|
background: linear-gradient(transparent 1em, whitesmoke); }
|
||||||
|
|
||||||
.player {
|
.player {
|
||||||
|
z-index: 10000;
|
||||||
box-shadow: 0em 1.5em 2.5em rgba(0, 0, 0, 0.6); }
|
box-shadow: 0em 1.5em 2.5em rgba(0, 0, 0, 0.6); }
|
||||||
.player .player-panels {
|
.player .player-panels {
|
||||||
height: 0%;
|
height: 0%;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -7389,6 +7389,7 @@ a.navbar-item.is-active {
|
||||||
background: linear-gradient(transparent 1em, whitesmoke); }
|
background: linear-gradient(transparent 1em, whitesmoke); }
|
||||||
|
|
||||||
.player {
|
.player {
|
||||||
|
z-index: 10000;
|
||||||
box-shadow: 0em 1.5em 2.5em rgba(0, 0, 0, 0.6); }
|
box-shadow: 0em 1.5em 2.5em rgba(0, 0, 0, 0.6); }
|
||||||
.player .player-panels {
|
.player .player-panels {
|
||||||
height: 0%;
|
height: 0%;
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -20,8 +20,11 @@ The audio player
|
||||||
<a-player ref="player"
|
<a-player ref="player"
|
||||||
:live-args="{url: '{% url "api:live" %}', timeout:10, src: {{ audio_streams|json }} || []}"
|
:live-args="{url: '{% url "api:live" %}', timeout:10, src: {{ audio_streams|json }} || []}"
|
||||||
button-title="{% trans "Play or pause audio" %}">
|
button-title="{% trans "Play or pause audio" %}">
|
||||||
<template v-slot:content="{ current }">
|
<template v-slot:content="{ loaded, live }">
|
||||||
<h4 v-if="current && current.type == 'track'"
|
<h4 v-if="loaded" class="title is-4">
|
||||||
|
[[ loaded.name ]]
|
||||||
|
</h4>
|
||||||
|
<h4 v-else-if="live && live.current && live.current.type == 'track'"
|
||||||
class="title is-4" aria-description="{% trans "Track currently on air" %}">
|
class="title is-4" aria-description="{% trans "Track currently on air" %}">
|
||||||
<span class="has-text-info is-size-3">♬</span>
|
<span class="has-text-info is-size-3">♬</span>
|
||||||
<span>[[ current.title ]]</span>
|
<span>[[ current.title ]]</span>
|
||||||
|
@ -30,15 +33,12 @@ The audio player
|
||||||
<i v-if="current.info">([[ current.info ]])</i>
|
<i v-if="current.info">([[ current.info ]])</i>
|
||||||
</span>
|
</span>
|
||||||
</h4>
|
</h4>
|
||||||
<div v-else-if="current && current.type == 'diffusion'">
|
<div v-else-if="live && live.current && live.current.type == 'diffusion'">
|
||||||
<h4 class="title is-4" aria-description="{% trans "Diffusion currently on air" %}">
|
<h4 class="title is-4" aria-description="{% trans "Diffusion currently on air" %}">
|
||||||
<a :href="current.url">[[ current.title ]]</a>
|
<a :href="current.url">[[ current.title ]]</a>
|
||||||
</h4>
|
</h4>
|
||||||
<div class="">[[ current.info ]]</div>
|
<div class="">[[ current.info ]]</div>
|
||||||
</div>
|
</div>
|
||||||
<h4 v-else-if="current" class="title is-4">
|
|
||||||
[[ current.name ]]
|
|
||||||
</h4>
|
|
||||||
<h4 v-else class="title is-4" aria-description="{% trans "Currently playing" %}">
|
<h4 v-else class="title is-4" aria-description="{% trans "Currently playing" %}">
|
||||||
{{ station.name }}
|
{{ station.name }}
|
||||||
</h4>
|
</h4>
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
<img :src="current.cover" class="cover" />
|
<img :src="current.cover" class="cover" />
|
||||||
</div>
|
</div>
|
||||||
<div class="media-content">
|
<div class="media-content">
|
||||||
<slot name="content" :current="current"></slot>
|
<slot name="content" :loaded='loaded' :live='live'></slot>
|
||||||
<Progress v-if="loaded && duration" :value="currentTime" :max="this.duration"
|
<Progress v-if="loaded && duration" :value="currentTime" :max="this.duration"
|
||||||
:format="displayTime"
|
:format="displayTime"
|
||||||
@select="audio.currentTime = $event"></Progress>
|
@select="audio.currentTime = $event"></Progress>
|
||||||
|
@ -133,12 +133,6 @@ export default {
|
||||||
current() {
|
current() {
|
||||||
return this.loaded || this.live && this.live.current;
|
return this.loaded || this.live && this.live.current;
|
||||||
},
|
},
|
||||||
|
|
||||||
buttonStyle() {
|
|
||||||
if(!this.current)
|
|
||||||
return;
|
|
||||||
return { backgroundImage: `url(${this.current.cover})` }
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
@ -169,6 +169,7 @@ a.navbar-item.is-active {
|
||||||
|
|
||||||
//-- player
|
//-- player
|
||||||
.player {
|
.player {
|
||||||
|
z-index: 10000;
|
||||||
box-shadow: 0em 1.5em 2.5em rgba(0, 0, 0, 0.6);
|
box-shadow: 0em 1.5em 2.5em rgba(0, 0, 0, 0.6);
|
||||||
|
|
||||||
.player-panels {
|
.player-panels {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user