Commit ec5b7981 authored by Nils Windisch's avatar Nils Windisch
Browse files

style: improve tool tip content formatting

parent 9a9dbaac
Pipeline #219175 passed with stages
in 4 minutes and 4 seconds
......@@ -345,9 +345,14 @@ export default {
tooltipEl.setAttribute('data-annotation-classes', `${el.className}`);
tooltipEl.setAttribute('class', 'annotation-tooltip');
const text = `Text belongs to annotation: "${annotationClasses.join(', ')}"`;
tooltipEl.innerText = text;
// TODO: add translation ability to the string "Referenced Annotation"
// TODO: plural/singluar "s" to "Referenced Annotation" depending of count of annotation references
// TODO: don't list annotation references via comma, but add a linebreak instead
// TODO: start every annotation reference with the follwoing string " - "
// TODO: add icon to (before) every annotation reference
const text = `<span class="text-body1">Referenced Annotation:</span><br><span class="text-body2">${annotationClasses.join(', ')}</span>`;
tooltipEl.innerHTML = text;
tooltipEl.setAttribute('id', this.getTooltipId(el)); = el;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment