From 05d05f2777d4d5fcec73fa246da9b5f6b8ed40f0 Mon Sep 17 00:00:00 2001 From: Jonas Date: Wed, 7 Jun 2023 18:23:31 +0200 Subject: [PATCH] Prevent cumulative layout shift when richworkspace is loading Instead of only increasing page height with growing document length, let's stick to a fixed height (30vh) and use that one already while loading the document. Fixes: #2834 Fixes: #2803 Signed-off-by: Jonas --- src/views/RichWorkspace.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/views/RichWorkspace.vue b/src/views/RichWorkspace.vue index 3c0c123e708..310d9e18809 100644 --- a/src/views/RichWorkspace.vue +++ b/src/views/RichWorkspace.vue @@ -262,8 +262,8 @@ export default { max-height: 50vh; } - #rich-workspace:not(.focus) { - max-height: 30vh; + #rich-workspace:not(.focus), #rich-workspace.icon-loading { + height: 30vh; position: relative; overflow: hidden; }