diff --git a/services/web/frontend/stylesheets/app/editor/pdf.less b/services/web/frontend/stylesheets/app/editor/pdf.less index fe6dbeb200..545cac0e9d 100644 --- a/services/web/frontend/stylesheets/app/editor/pdf.less +++ b/services/web/frontend/stylesheets/app/editor/pdf.less @@ -320,8 +320,15 @@ } :fullscreen { + .pdfViewer { + min-height: auto !important; + } + .pdfjs-viewer-inner { overflow-y: hidden !important; + display: flex; + align-items: center; + justify-content: center; } } diff --git a/services/web/frontend/stylesheets/bootstrap-5/pages/editor/pdf.scss b/services/web/frontend/stylesheets/bootstrap-5/pages/editor/pdf.scss index 14eee1f3d2..68b40e2e31 100644 --- a/services/web/frontend/stylesheets/bootstrap-5/pages/editor/pdf.scss +++ b/services/web/frontend/stylesheets/bootstrap-5/pages/editor/pdf.scss @@ -343,8 +343,16 @@ } :fullscreen { + /* stylelint-disable selector-class-pattern */ + .pdfViewer { + min-height: auto !important; + } + .pdfjs-viewer-inner { overflow-y: hidden !important; + display: flex; + align-items: center; + justify-content: center; } }