mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-29 07:09:48 +03:00
Added animation to portal preview height (#1977)
no issue - add CSS transition for height attribute of portal preview container - before adjusting height of container, apply styles to portal preview nested iframe to prevent scrollbars from showing
This commit is contained in:
parent
baafe011a2
commit
956ec8f302
@ -3,6 +3,7 @@
|
||||
src={{this.srcUrl}}
|
||||
frameborder="0"
|
||||
allowtransparency="true"
|
||||
scrolling="no"
|
||||
{{did-insert this.attachMessageListener}}
|
||||
{{did-update this.resetSrcAttribute @guid}}
|
||||
{{on "load" this.onLoad}}
|
||||
|
@ -260,6 +260,9 @@ export default class MembersAccessController extends Controller {
|
||||
return;
|
||||
}
|
||||
|
||||
portalIframe.contentWindow.document.body.style.overflow = 'hidden';
|
||||
portalIframe.contentWindow.document.body.style['scrollbar-width'] = 'none';
|
||||
|
||||
const portalContainer = portalIframe.contentWindow.document.querySelector('.gh-portal-popup-container');
|
||||
if (!portalContainer) {
|
||||
return;
|
||||
|
@ -1645,6 +1645,7 @@ p.theme-validation-details {
|
||||
margin-bottom: 32px;
|
||||
border-radius: 5px;
|
||||
pointer-events: none;
|
||||
transition: height 0.35s ease-in-out;
|
||||
}
|
||||
|
||||
.gh-setting-members-portal-disabled {
|
||||
|
Loading…
Reference in New Issue
Block a user