Преглед изворни кода

Vertically center pdf in presentation mode (#22145)

* Vertically center pdf in presentation mode

* Ignore style lint error

GitOrigin-RevId: b46e6d414406d150e894b4c94ec0e94b61a0ce11
David пре 1 година
родитељ
комит
044f52f937

+ 7 - 0
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;
   }
 }
 

+ 8 - 0
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;
   }
 }