From 5f03379c6ac8981c940be22b2ad688578506b22a Mon Sep 17 00:00:00 2001 From: Javier Pedemonte Date: Wed, 24 Jul 2024 18:28:35 -0500 Subject: [PATCH] fix: position text layer wrapper absolute --- .../document-preview/_document-preview-pdf-viewer.scss | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/discovery-styles/scss/components/document-preview/_document-preview-pdf-viewer.scss b/packages/discovery-styles/scss/components/document-preview/_document-preview-pdf-viewer.scss index d17d312a9..d32e38fbc 100644 --- a/packages/discovery-styles/scss/components/document-preview/_document-preview-pdf-viewer.scss +++ b/packages/discovery-styles/scss/components/document-preview/_document-preview-pdf-viewer.scss @@ -29,6 +29,12 @@ $hightlight-active-z-index: 200; // Prevent bottom whitespace from displaying line-height: 0; + .textLayerWrapper { + position: absolute; + top: 0; + left: 0; + } + @include pdfjsTextLayer; }