Add comments to metadata media overlay.
Adjust the label element width to 120px to be able to fit in the text: 'Comments'. Adjust the font-weight of the comments & format value to 'normal'.
This commit is contained in:
@@ -252,6 +252,11 @@ function renderAudioMetadata (state) {
|
|||||||
}
|
}
|
||||||
format = format.join(', ')
|
format = format.join(', ')
|
||||||
|
|
||||||
|
let comments
|
||||||
|
if (common.comment) {
|
||||||
|
comments = common.comment.join(' / ')
|
||||||
|
}
|
||||||
|
|
||||||
// Show a small info box in the middle of the screen with title/album/etc
|
// Show a small info box in the middle of the screen with title/album/etc
|
||||||
const elems = []
|
const elems = []
|
||||||
if (artist) {
|
if (artist) {
|
||||||
@@ -284,6 +289,14 @@ function renderAudioMetadata (state) {
|
|||||||
))
|
))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (comments) {
|
||||||
|
elems.push((
|
||||||
|
<div key='comments' className='audio-comments'>
|
||||||
|
<label>Comments</label>{comments}
|
||||||
|
</div>
|
||||||
|
))
|
||||||
|
}
|
||||||
|
|
||||||
// Align the title with the other info, if available. Otherwise, center title
|
// Align the title with the other info, if available. Otherwise, center title
|
||||||
const emptyLabel = (<label />)
|
const emptyLabel = (<label />)
|
||||||
elems.unshift((
|
elems.unshift((
|
||||||
|
|||||||
@@ -820,12 +820,17 @@ video::-webkit-media-text-track-container {
|
|||||||
|
|
||||||
.audio-metadata label {
|
.audio-metadata label {
|
||||||
display:inline-block;
|
display:inline-block;
|
||||||
width: 100px;
|
width: 120px;
|
||||||
text-align: right;
|
text-align: right;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin-right: 25px;
|
margin-right: 25px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.audio-metadata .audio-format,
|
||||||
|
.audio-metadata .audio-comments {
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* ERRORS
|
* ERRORS
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user