From 320f18503439c7e490f259ed2ed7355ff72b4237 Mon Sep 17 00:00:00 2001 From: bobzel Date: Wed, 9 Sep 2020 13:07:33 -0400 Subject: fixed unpnning pdf annotations. remvoed unused UI from PDFmenu --- src/client/views/nodes/PDFBox.scss | 8 ++++++-- src/client/views/nodes/PDFBox.tsx | 13 ++++--------- 2 files changed, 10 insertions(+), 11 deletions(-) (limited to 'src/client/views/nodes') diff --git a/src/client/views/nodes/PDFBox.scss b/src/client/views/nodes/PDFBox.scss index f2ab37984..1c73ec8cb 100644 --- a/src/client/views/nodes/PDFBox.scss +++ b/src/client/views/nodes/PDFBox.scss @@ -189,8 +189,8 @@ margin-bottom: auto; transform-origin: 42% 15%; width: 100%; - transform: rotate(55deg); - font-size: 200; + transform: rotate(55deg) scale(0.8); + font-size: 80; padding: 5%; overflow: hidden; display: inline-block; @@ -202,6 +202,8 @@ } .pdfBox { + width: 100%; + height: 100%; .pdfViewerDash-text { .textLayer { span { @@ -212,6 +214,8 @@ } .pdfBox-interactive { + width: 100%; + height: 100%; pointer-events: all; .pdfViewerDash-text { .textLayer { diff --git a/src/client/views/nodes/PDFBox.tsx b/src/client/views/nodes/PDFBox.tsx index a2b406c3f..7bdbe3cae 100644 --- a/src/client/views/nodes/PDFBox.tsx +++ b/src/client/views/nodes/PDFBox.tsx @@ -191,7 +191,7 @@ export class PDFBox extends ViewBoxAnnotatableComponent this._pageControls = !this._pageControls)} /> {this._pageControls ? pageBtns : (null)} -
e.stopPropagation()}> + {/*
e.stopPropagation()}>
+
*/} ); } @@ -236,12 +236,7 @@ export class PDFBox extends ViewBoxAnnotatableComponent 600) - height: !this.props.Document._fitWidth && (window.screen.width > 600) ? this.Document._nativeHeight || 0 : `${100 / this.contentScaling}%`, - transform: `scale(${this.contentScaling})` - }} > + return
{this.props.Document.title}
@@ -270,7 +265,7 @@ export class PDFBox extends ViewBoxAnnotatableComponent