Fixed double scrollbar bug

Ref: https://github.com/TryGhost/Casper/issues/850

Portal has a bug that the scrollbars for the popup wrapper are always
visible which results in double scrollbars for certian viewports.
This commit hides the wrapper's scrollbars, so only the site scrollbars
will be visible (if the content requires it).
This commit is contained in:
Peter Zimon 2022-03-16 09:13:28 +01:00
parent c5154a43a7
commit 9425e5843e

View File

@ -235,6 +235,12 @@ const FrameStyles = `
height: 100%;
max-height: 100vh;
overflow: scroll;
-ms-overflow-style: none;
scrollbar-width: none;
}
.gh-portal-popup-wrapper::-webkit-scrollbar {
display: none;
}
.gh-portal-popup-container {