From 02cfeb8b5abe1a7752e8bd151d584c521f6824f6 Mon Sep 17 00:00:00 2001 From: Daniel Lautzenheiser Date: Tue, 20 Sep 2022 09:42:21 -0400 Subject: [PATCH] Fix preview scrolling --- package.json | 1 + .../components/Editor/EditorPreviewPane/EditorPreviewContent.tsx | 1 + 2 files changed, 2 insertions(+) diff --git a/package.json b/package.json index 7eb7ed56..face22d1 100644 --- a/package.json +++ b/package.json @@ -66,6 +66,7 @@ "pack:app": "cd packages/netlify-cms-app && npm pack", "pack:ui-default": "cd packages/netlify-cms-ui-default && npm pack", "pack:widget-file": "cd packages/netlify-cms-widget-file && npm pack", + "pack:git-gateway": "cd packages/netlify-cms-backend-git-gateway && npm pack", "pack-copy": "mv packages/**/*.tgz ./packs", "pack-clear": "rm -Rf packs/*", "pack-all": "run-p pack:* && npm run pack-copy", diff --git a/packages/netlify-cms-core/src/components/Editor/EditorPreviewPane/EditorPreviewContent.tsx b/packages/netlify-cms-core/src/components/Editor/EditorPreviewPane/EditorPreviewContent.tsx index ec76d328..de15e261 100644 --- a/packages/netlify-cms-core/src/components/Editor/EditorPreviewPane/EditorPreviewContent.tsx +++ b/packages/netlify-cms-core/src/components/Editor/EditorPreviewPane/EditorPreviewContent.tsx @@ -18,6 +18,7 @@ const StyledPreviewContent = styled.div` right: 0; position: absolute; height: calc(100% - 66px); + overflow-y: auto; `; const PreviewContent = ({ previewComponent, previewProps }: PreviewContentProps) => {