From 62d29d5e490af97332e1593e262f840332adfa62 Mon Sep 17 00:00:00 2001 From: Jackson Harper Date: Fri, 27 Oct 2023 10:30:58 +0800 Subject: [PATCH] Fixes for update --- .../web/components/templates/article/PdfArticleContainer.tsx | 4 +++- packages/web/public/static/pspdfkit-lib.css | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/web/components/templates/article/PdfArticleContainer.tsx b/packages/web/components/templates/article/PdfArticleContainer.tsx index a68587c13..3dc9fd7c6 100644 --- a/packages/web/components/templates/article/PdfArticleContainer.tsx +++ b/packages/web/components/templates/article/PdfArticleContainer.tsx @@ -244,7 +244,9 @@ export default function PdfArticleContainer( patch.customData.omnivoreHighight.annotation = highlight.annotation } - const annotation = PSPDFKit.Annotations.fromSerializableObject(patch) + const annotation = PSPDFKit.Annotations.fromSerializableObject( + patch + ) as Annotation try { await instance.create(annotation) diff --git a/packages/web/public/static/pspdfkit-lib.css b/packages/web/public/static/pspdfkit-lib.css index 775d06a96..f1a268de2 100644 --- a/packages/web/public/static/pspdfkit-lib.css +++ b/packages/web/public/static/pspdfkit-lib.css @@ -21,7 +21,8 @@ .PSPDFKit-Text-Markup-Inline-Toolbar-Squiggle, .PSPDFKit-Text-Markup-Inline-Toolbar-Strike-Out, .PSPDFKit-Text-Markup-Inline-Toolbar-Redaction, -.PSPDFKit-Text-Markup-Inline-Toolbar-Underline { +.PSPDFKit-Text-Markup-Inline-Toolbar-Underline, +.PSPDFKit-Text-Markup-Inline-Toolbar-Comment { display: none; }