mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-08 01:04:39 +08:00
fix(react-remote): Put a title on the container region
Fixes T3512
This commit is contained in:
parent
15f5a6899f
commit
2eb4abb130
1 changed files with 6 additions and 0 deletions
6
src/react-remote/react-remote-parent.js
vendored
6
src/react-remote/react-remote-parent.js
vendored
|
@ -168,6 +168,12 @@ reactRemoteContainer.style.zIndex = 10000;
|
||||||
reactRemoteContainer.style.border = '5px solid orange';
|
reactRemoteContainer.style.border = '5px solid orange';
|
||||||
document.body.appendChild(reactRemoteContainer);
|
document.body.appendChild(reactRemoteContainer);
|
||||||
|
|
||||||
|
var reactRemoteContainerTitle = document.createElement('div');
|
||||||
|
reactRemoteContainerTitle.style.color = 'white';
|
||||||
|
reactRemoteContainerTitle.style.backgroundColor = 'orange';
|
||||||
|
reactRemoteContainerTitle.innerText = 'React Remote Container';
|
||||||
|
reactRemoteContainer.appendChild(reactRemoteContainerTitle);
|
||||||
|
|
||||||
var toggleContainerVisible = function() {
|
var toggleContainerVisible = function() {
|
||||||
if (reactRemoteContainer.style.left === '-10000px') {
|
if (reactRemoteContainer.style.left === '-10000px') {
|
||||||
reactRemoteContainer.style.left = 0;
|
reactRemoteContainer.style.left = 0;
|
||||||
|
|
Loading…
Reference in a new issue