mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-26 18:51:50 +02:00
Disable overflow: scroll on the outer pdf.js element (#5446)
GitOrigin-RevId: 77485d0dd2af3e4dc6f86f322816e00beee9dfa9
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user