mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Disable overflow: scroll on the outer pdf.js element (#5446)
GitOrigin-RevId: 77485d0dd2af3e4dc6f86f322816e00beee9dfa9
This commit is contained in:
parent
7991fc1ebd
commit
4c25dcfb2b
2 changed files with 7 additions and 1 deletions
|
@ -237,7 +237,7 @@ function PdfJsViewer({ url }) {
|
|||
/* eslint-disable jsx-a11y/no-noninteractive-tabindex */
|
||||
/* eslint-disable jsx-a11y/no-noninteractive-element-interactions */
|
||||
return (
|
||||
<div className="pdfjs-viewer" ref={handleContainer}>
|
||||
<div className="pdfjs-viewer pdfjs-viewer-outer" ref={handleContainer}>
|
||||
<div
|
||||
className="pdfjs-viewer-inner"
|
||||
role="tabpanel"
|
||||
|
|
|
@ -268,6 +268,12 @@
|
|||
}
|
||||
}
|
||||
|
||||
// The new viewer UI has overflow on the inner element,
|
||||
// so disable the overflow on the outer element
|
||||
.pdf-viewer .pdfjs-viewer.pdfjs-viewer-outer {
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.pdf-logs {
|
||||
overflow: auto;
|
||||
.alert {
|
||||
|
|
Loading…
Reference in a new issue