From 2a3459dc23d7218ec9c787949148ba1b96a03515 Mon Sep 17 00:00:00 2001 From: bkepka-box <141409011+bkepka-box@users.noreply.github.com> Date: Mon, 1 Jul 2024 09:19:00 +0200 Subject: [PATCH] fix(preview): Fix highlighting text when performing click and drag (#1531) * fix(preview): Fix highlighting text when performing click and drag * fix(preview): Change z-index from 2 to 1 --- src/lib/viewers/doc/_docBase.scss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/viewers/doc/_docBase.scss b/src/lib/viewers/doc/_docBase.scss index da483dd35..bddd94b36 100644 --- a/src/lib/viewers/doc/_docBase.scss +++ b/src/lib/viewers/doc/_docBase.scss @@ -322,10 +322,11 @@ $thumbnail-sidebar-width: 191px; // Extra pixel to account for sidebar border } .textLayer { - caret-color: black; // Required for caret navigation on transparent text top: $pdfjs-page-padding; bottom: auto; + z-index: 1; opacity: 1; + caret-color: black; // Required for caret navigation on transparent text // Only allow text divs to be selected > div {