From f989dcbea8767bd12d660669ad7c530e6ae705ee Mon Sep 17 00:00:00 2001 From: Carl Schwan Date: Mon, 17 Jan 2022 16:00:19 +0100 Subject: [PATCH] Fix loading of the text app in public shared links Instead of doing the centering for the entire public content, only do it for the preview. This is more safe. Signed-off-by: Carl Schwan --- core/css/public.scss | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/core/css/public.scss b/core/css/public.scss index 31e48f3c7ccd3..e0ca670fcdbb6 100644 --- a/core/css/public.scss +++ b/core/css/public.scss @@ -9,10 +9,19 @@ /** Center the shared content inside the page */ &.app-files_sharing { - justify-content: center; - align-items: center; #app-content { - min-height: inherit; + min-height: 100%; + display: flex; + } + + #files-public-content { + flex-grow: 2; + display: grid; + } + + #preview { + justify-self: center; + align-self: center; padding-left: 1rem; padding-right: 1rem; }