Made Portal preview scrollable

- Updated Portal preview in Membership settings and Portal settings so that the preview is scrollable in all browsers.

Note: Only when Tiers is turned on.
This commit is contained in:
Peter Zimon 2021-09-01 17:58:35 +02:00
parent c5e00d71f1
commit 805873d64e
4 changed files with 10 additions and 2 deletions

View File

@ -317,7 +317,7 @@
<div class="gh-portal-preview-container {{if this.showLinksPage "hide"}}">
<div class="gh-portal-site-frame-cover"> </div>
<GhSiteIframe
class="gh-portal-siteiframe"
class="gh-portal-siteiframe {{if (feature "multipleProducts") "gh-portal-siteiframe-enabled"}}"
@src={{this.portalPreviewUrl}}
@guid={{this.portalPreviewGuid}}
@invisibleUntilLoaded="portal-ready" />

View File

@ -356,6 +356,10 @@
height: calc((1 / 0.95) * 100%) !important;
}
.gh-portal-siteiframe-enabled {
pointer-events: unset;
}
.gh-portal-site-frame-cover {
position: absolute;
top: 0;

View File

@ -1596,6 +1596,10 @@ p.theme-validation-details {
transition: height 0.17s ease-out;
}
.gh-setting-members-portal-mock.mock-enabled {
pointer-events: unset;
}
.gh-setting-members-portal-disabled {
display: flex;
flex-direction: column;

View File

@ -47,7 +47,7 @@
</div>
</div>
<div class="gh-setting-members-portalpreview">
<div class="gh-setting-members-portal-mock">
<div class="gh-setting-members-portal-mock {{if (feature "multipleProducts") "mock-enabled"}}">
{{#if (or (eq this.settings.membersSignupAccess 'none') this.switchFromNoneTask.isRunning)}}
<div class="gh-setting-members-portal-disabled">
<span class="lightgrey">{{svg-jar "portal-logo-stroke"}}</span>