0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-01 02:41:39 -05:00

Updated z-index of iframes

This commit is contained in:
Peter Zimon 2020-09-11 17:18:18 +02:00
parent 740192f077
commit 7ff541bf04
2 changed files with 5 additions and 2 deletions

View file

@ -10,7 +10,7 @@ const React = require('react');
const StylesWrapper = ({member}) => {
return {
modalContainer: {
zIndex: '1000',
zIndex: '3999999',
position: 'fixed',
left: '0',
top: '0',
@ -153,6 +153,9 @@ export default class PopupModal extends React.Component {
const frameStyle = {
...Styles.frame.common
};
if (hasMode(['preview', 'dev'])) {
Styles.modalContainer.zIndex = '3999997';
}
return (
<div style={Styles.modalContainer}>
<Frame style={frameStyle} title="membersjs-popup" head={this.renderFrameStyles()}>

View file

@ -28,7 +28,7 @@ const Styles = ({brandColor, hasText}) => {
const invertColor = getContrastColor(brandColor);
return {
frame: {
zIndex: '2147483000',
zIndex: '3999998',
position: 'fixed',
bottom: '28px',
right: '28px',