diff --git a/platypush/backend/http/webapp/src/assets/icons.json b/platypush/backend/http/webapp/src/assets/icons.json index f95532ac3b..220a0cd44f 100644 --- a/platypush/backend/http/webapp/src/assets/icons.json +++ b/platypush/backend/http/webapp/src/assets/icons.json @@ -53,15 +53,15 @@ "linode": { "class": "fas fa-cloud" }, + "media.chromecast": { + "class": "fab fa-chromecast" + }, "media.jellyfin": { "imgUrl": "/icons/jellyfin.svg" }, "media.kodi": { "imgUrl": "/icons/kodi.svg" }, - "media.omxplayer": { - "class": "fa fa-film" - }, "media.mplayer": { "class": "fa fa-film" }, diff --git a/platypush/backend/http/webapp/src/components/Media/Controls.vue b/platypush/backend/http/webapp/src/components/Media/Controls.vue index c372370416..72fcd3e206 100644 --- a/platypush/backend/http/webapp/src/components/Media/Controls.vue +++ b/platypush/backend/http/webapp/src/components/Media/Controls.vue @@ -57,7 +57,7 @@
-
+
@@ -127,6 +127,7 @@ export default { mixins: [Utils, MediaUtils], emits: [ 'consume', + 'info', 'mute', 'next', 'pause', @@ -202,6 +203,9 @@ export default { }, trackImage() { + if (this.track?.images?.length) + return this.track.images[0].url + return this.track?.image || this.image }, }, @@ -405,6 +409,10 @@ button { overflow: hidden; align-items: center; + button { + background: none !important; + } + .row { width: 100%; display: flex; @@ -466,8 +474,14 @@ button { flex-direction: row; align-items: center; + .img-container { + max-width: 100%; + max-height: calc(100% + 3em); + } + .image { - margin-right: 0.75em; + padding: 0.5em; + max-height: 100%; } } } diff --git a/platypush/backend/http/webapp/src/components/Media/View.vue b/platypush/backend/http/webapp/src/components/Media/View.vue index 3b1f402e43..a80da9ab1f 100644 --- a/platypush/backend/http/webapp/src/components/Media/View.vue +++ b/platypush/backend/http/webapp/src/components/Media/View.vue @@ -9,6 +9,7 @@ :status="status" :track="track" @consume="$emit('consume', $event)" + @info="$emit('info', $event)" @mute="$emit('mute')" @next="$emit('next')" @pause="$emit('pause', $event)" @@ -33,6 +34,7 @@ export default { components: {Controls}, emits: [ 'consume', + 'info', 'mute', 'next', 'pause', diff --git a/platypush/backend/http/webapp/src/components/panels/Media/Browser.vue b/platypush/backend/http/webapp/src/components/panels/Media/Browser.vue index b224ed6b4d..9ae28c776f 100644 --- a/platypush/backend/http/webapp/src/components/panels/Media/Browser.vue +++ b/platypush/backend/http/webapp/src/components/panels/Media/Browser.vue @@ -1,9 +1,7 @@