From 053b84d8282693173cdeb594406c7037599b86ea Mon Sep 17 00:00:00 2001 From: Tim Down <158919+timdown@users.noreply.github.com> Date: Tue, 17 Dec 2024 10:30:50 +0000 Subject: [PATCH] Merge pull request #22557 from overleaf/td-bs5-pdf-detach-height Copy some and rules from BS3 to fix the detached PDF page GitOrigin-RevId: 9c14bd4988811b857c8c3516e50589514b400ac1 --- .../stylesheets/bootstrap-5/base/layout.scss | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/services/web/frontend/stylesheets/bootstrap-5/base/layout.scss b/services/web/frontend/stylesheets/bootstrap-5/base/layout.scss index 211f384d61..143fad0465 100644 --- a/services/web/frontend/stylesheets/bootstrap-5/base/layout.scss +++ b/services/web/frontend/stylesheets/bootstrap-5/base/layout.scss @@ -1,5 +1,17 @@ +html { + height: 100%; +} + +// Prevent potential for layout shifts on a page with fixed 100% height. This +// can happen, for example, with the Grammarly extension in Firefox. +html.fixed-size-document { + position: fixed; + width: 100%; +} + body { position: relative; + min-height: 100%; } .content {