From f60e88368bf3b05affc2fe09667f5734f41014e8 Mon Sep 17 00:00:00 2001 From: David <33458145+davidmcpowell@users.noreply.github.com> Date: Wed, 27 Nov 2024 11:08:33 +0000 Subject: [PATCH] Vertically center pdf in presentation mode (#22145) * Vertically center pdf in presentation mode * Ignore style lint error GitOrigin-RevId: b46e6d414406d150e894b4c94ec0e94b61a0ce11 --- services/web/frontend/stylesheets/app/editor/pdf.less | 7 +++++++ .../stylesheets/bootstrap-5/pages/editor/pdf.scss | 8 ++++++++ 2 files changed, 15 insertions(+) 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; } }