aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-03-18 21:36:03 -0400
committerbobzel <zzzman@gmail.com>2025-03-18 21:36:03 -0400
commit9cc9b2aca40e0a0c5e6027999e4d6316113ac6bf (patch)
tree057c52d6fec7057708598c535501e609e014b153 /src
parentb85958e45b951320e92bbcae384abbde93a2d0c6 (diff)
finally fixed selectionw with new version of PDFjs
Diffstat (limited to 'src')
-rw-r--r--src/client/views/pdf/PDFViewer.scss7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/views/pdf/PDFViewer.scss b/src/client/views/pdf/PDFViewer.scss
index f4257a93c..1aab2b853 100644
--- a/src/client/views/pdf/PDFViewer.scss
+++ b/src/client/views/pdf/PDFViewer.scss
@@ -29,10 +29,11 @@
.textLayer {
opacity: unset;
mix-blend-mode: multiply; // bcz: makes text fuzzy!
+ // all these below fix issues with PDFjs
transform: scale(var(--devicePixelRatio));
- .markedContent span {
- --total-scale-factor: var(--scale-factor);
- }
+ --total-scale-factor: var(--scale-factor); // these 3 are used by PDFjs but not defined. why???
+ --scale-round-x: 1px;
+ --scale-round-y: 1px;
}
[data-main-rotation='90'] {
transform: scale(var(--devicePixelRatio)) rotate(90deg) translateY(-100%);