From 792c9774a57b471c4751d4d2c8b1413ddb08b687 Mon Sep 17 00:00:00 2001 From: Tim Down <158919+timdown@users.noreply.github.com> Date: Thu, 24 Oct 2024 10:58:57 +0100 Subject: [PATCH] Merge pull request #21347 from overleaf/td-document-diff-viewer-full-width Make document diff viewer always take up the full width of its container GitOrigin-RevId: cdb593700c403564bdf297ea838b279e7e73bba2 --- services/web/frontend/stylesheets/app/editor/history-react.less | 2 ++ .../frontend/stylesheets/bootstrap-5/pages/editor/history.scss | 2 ++ 2 files changed, 4 insertions(+) diff --git a/services/web/frontend/stylesheets/app/editor/history-react.less b/services/web/frontend/stylesheets/app/editor/history-react.less index 0917155254..c9a8ef9bb9 100644 --- a/services/web/frontend/stylesheets/app/editor/history-react.less +++ b/services/web/frontend/stylesheets/app/editor/history-react.less @@ -17,6 +17,7 @@ history-root { .history-react { display: flex; + justify-content: center; height: 100%; background-color: @history-main-bg; @@ -400,6 +401,7 @@ history-root { height: 100%; display: flex; flex-direction: column; + flex: 1; position: relative; .cm-viewer-container, diff --git a/services/web/frontend/stylesheets/bootstrap-5/pages/editor/history.scss b/services/web/frontend/stylesheets/bootstrap-5/pages/editor/history.scss index c5742e9e8f..c5813a4603 100644 --- a/services/web/frontend/stylesheets/bootstrap-5/pages/editor/history.scss +++ b/services/web/frontend/stylesheets/bootstrap-5/pages/editor/history.scss @@ -25,6 +25,7 @@ history-root { --history-change-list-padding: var(--spacing-06); display: flex; + justify-content: center; height: 100%; background-color: var(--bg-light-primary); @@ -396,6 +397,7 @@ history-root { height: 100%; display: flex; flex-direction: column; + flex: 1; position: relative; .cm-viewer-container,