Skip to content
This repository has been archived by the owner on Jul 6, 2023. It is now read-only.

Commit

Permalink
refactor(playmedia): wrap audio and subtitle details
Browse files Browse the repository at this point in the history
  • Loading branch information
ttshivers committed Sep 28, 2020
1 parent 0ee57fc commit 13617b4
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions src/components/PlexMediaPlayDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,18 @@
</v-list-item-title>

<v-list-item-subtitle>
Video Codec: {{ media.videoCodec }} ({{ media.bitrate }}kbps)
<span class="text--primary">Video Codec:</span>
{{ media.videoCodec }} ({{ media.bitrate }}kbps)
</v-list-item-subtitle>

<v-list-item-subtitle>
Audio Streams: {{ audioStreams(media.Part[0].Stream) }}
<v-list-item-subtitle class="wrap">
<span class="text--primary">Audio Streams:</span>
{{ audioStreams(media.Part[0].Stream) }}
</v-list-item-subtitle>

<v-list-item-subtitle>
Subtitles: {{ subtitleStreams(media.Part[0].Stream) }}
<v-list-item-subtitle class="wrap">
<span class="text--primary">Subtitles:</span>
{{ subtitleStreams(media.Part[0].Stream) }}
</v-list-item-subtitle>
</v-list-item-content>

Expand Down Expand Up @@ -107,7 +110,7 @@ export default {
},
formatStreams(streams) {
return streams.map(({ extendedDisplayTitle }) => extendedDisplayTitle)
return streams.map(({ displayTitle }) => displayTitle)
.join(', ');
},
Expand All @@ -126,3 +129,9 @@ export default {
},
};
</script>

<style scoped>
.wrap {
white-space: normal !important;
}
</style>

0 comments on commit 13617b4

Please sign in to comment.