Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
subugoe
emo
TIDO
Commits
ec5b7981
Commit
ec5b7981
authored
Aug 09, 2021
by
Nils Windisch
Browse files
style: improve tool tip content formatting
parent
9a9dbaac
Pipeline
#219175
passed with stages
in 4 minutes and 4 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/components/annotations/annotations.vue
View file @
ec5b7981
...
...
@@ -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
));
window
.
top
.
el
=
el
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment