Skip to content

Commit

Permalink
PDF viewer trimming failed due to PDF.js CSS canvas style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Jan 3, 2025
1 parent 1398802 commit 4f6df5f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions viewer/latexworkshop.css
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,11 @@ html[dir='rtl'] .findbar {
box-shadow: 0px 0px 0px 1px lightgrey;
}

:is(.pdfViewer .canvasWrapper) canvas{
position: relative !important;
contain: none !important;
}

.pdfViewer.removePageBorders > .page:last-of-type,
.pdfViewer.removePageBorders .spread:last-of-type .page {
margin-bottom: 0px;
Expand Down

0 comments on commit 4f6df5f

Please sign in to comment.