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:
Borewit
2018-02-19 21:25:22 +01:00
parent 0572f8a932
commit e5a64d9550
2 changed files with 19 additions and 1 deletions

View File

@@ -252,6 +252,11 @@ function renderAudioMetadata (state) {
}
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
const elems = []
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
const emptyLabel = (<label />)
elems.unshift((