Skip to content

Commit

Permalink
Prevent cumulative layout shift when richworkspace is loading
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
mejo- committed Jun 7, 2023
1 parent 4a7b4af commit 05d05f2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/views/RichWorkspace.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 05d05f2

Please sign in to comment.