@@ -3698,25 +3698,45 @@ function RemoteFunctions(config = {}) {
36983698
36993699 // create overlay container
37003700 const overlay = window . document . createElement ( 'div' ) ;
3701- overlay . className = 'phoenix-dialog-overlay' ;
37023701 overlay . setAttribute ( 'data-phcode-internal-c15r5a9' , 'true' ) ;
3703- overlay . style . cssText = 'position: fixed; top: 0; left: 0; width: 100%; height: 100%; ' +
3704- 'background: rgba(0, 0, 0, 0.5); z-index: 10000; pointer-events: auto;' ;
3705-
3706- // create message bar
3707- const messageBar = window . document . createElement ( 'div' ) ;
3708- messageBar . className = 'phoenix-dialog-message-bar' ;
3709- messageBar . setAttribute ( 'data-phcode-internal-c15r5a9' , 'true' ) ;
3710- messageBar . style . cssText = 'position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); ' +
3711- 'color: #ffffff; background-color: #333333; padding: 1em 1.5em; ' +
3712- 'text-align: center; font-size: 16px; border-radius: 3px;' +
3713- 'font-family: "SourceSansPro", Helvetica, Arial, sans-serif;' ;
3714- messageBar . textContent = config . strings . imageGalleryDialogOverlayMessage ;
3715-
3716- // assemble the structure
3717- overlay . appendChild ( messageBar ) ;
3718-
3719- // append to body
3702+
3703+ const styles = `
3704+ <style>
3705+ .phoenix-dialog-overlay {
3706+ position: fixed !important;
3707+ top: 0 !important;
3708+ left: 0 !important;
3709+ width: 100% !important;
3710+ height: 100% !important;
3711+ background: rgba(0, 0, 0, 0.5) !important;
3712+ z-index: 2147483646 !important;
3713+ pointer-events: auto !important;
3714+ }
3715+
3716+ .phoenix-dialog-message-bar {
3717+ position: absolute !important;
3718+ top: 50% !important;
3719+ left: 50% !important;
3720+ transform: translate(-50%, -50%) !important;
3721+ color: #ffffff !important;
3722+ background-color: #333333 !important;
3723+ padding: 1em 1.5em !important;
3724+ text-align: center !important;
3725+ font-size: 16px !important;
3726+ border-radius: 3px !important;
3727+ font-family: "SourceSansPro", Helvetica, Arial, sans-serif !important;
3728+ z-index: 2147483647 !important;
3729+ }
3730+ </style>
3731+ ` ;
3732+
3733+ const content = `
3734+ <div class="phoenix-dialog-overlay">
3735+ <div class="phoenix-dialog-message-bar">${ config . strings . imageGalleryDialogOverlayMessage } </div>
3736+ </div>
3737+ ` ;
3738+
3739+ overlay . innerHTML = styles + content ;
37203740 window . document . body . appendChild ( overlay ) ;
37213741 _dialogOverlay = overlay ;
37223742 }
0 commit comments