diff --git a/services/web/frontend/js/features/pdf-preview/util/highlights.js b/services/web/frontend/js/features/pdf-preview/util/highlights.js index 3c0db30b3a..04655ee58b 100644 --- a/services/web/frontend/js/features/pdf-preview/util/highlights.js +++ b/services/web/frontend/js/features/pdf-preview/util/highlights.js @@ -16,7 +16,7 @@ export function buildHighlightElement(highlight, wrapper) { const element = document.createElement('div') element.style.left = Math.floor(pageView.div.offsetLeft + left) + 'px' - element.style.top = Math.floor(pageView.div.offsetTop + top + 10) + 'px' + element.style.top = Math.floor(pageView.div.offsetTop + top) + 'px' element.style.width = Math.ceil(right - left) + 'px' element.style.height = Math.ceil(bottom - top) + 'px' element.style.backgroundColor = 'rgba(255,255,0)'