option to show user in mobile view

This commit is contained in:
j 2024-08-08 14:37:14 +02:00
commit 4748930460
3 changed files with 10 additions and 2 deletions

View file

@ -137,9 +137,13 @@ async function loadData(id, args) {
/href="\//g, `href="${pandora.url.origin}/`
)
}
let content = annotation.value
if (!layerData.isSubtitles && layerData.type == "text" && args.show && args.show.includes("user")) {
content += `\n<div class="user">— ${annotation.user}</div>`
}
html.push(`
<div class="annotation ${layerData.type}" data-in="${annotation.in}" data-out="${annotation.out}">
${annotation.value}
${content}
</div>
`)
})