fixing this dialog never gets old

This commit is contained in:
Stewart Allen 2018-02-21 06:48:48 -05:00
commit cb795870ee
2 changed files with 14 additions and 9 deletions

View file

@ -198,13 +198,16 @@ var gs_moto_ui = exports;
btn.parentNode.onclick = btn.onclick; btn.parentNode.onclick = btn.onclick;
ev.stopPropagation(); ev.stopPropagation();
// drop clicks on TextArea // drop clicks on TextArea
if (ev.target === txt) return; if (ev.target === txt) {
var showing = pop === lastPop; ev.target.focus();
hidePop(); } else {
if (!showing) { var showing = pop === lastPop;
pop.style.display = "flex"; hidePop();
lastPop = pop; if (!showing) {
txt.focus(); pop.style.display = "flex";
lastPop = pop;
txt.focus();
}
} }
}; };
addModeControls(btn, opt); addModeControls(btn, opt);

View file

@ -583,7 +583,7 @@ button[import="1"] {
display: none; display: none;
position: absolute; position: absolute;
margin-left: 30px; margin-left: 30px;
border: 5px solid gray; border: 3px solid gray;
border-radius: 3px; border-radius: 3px;
transform: translate(0, -25%); transform: translate(0, -25%);
z-Index: 10000; z-Index: 10000;
@ -595,5 +595,7 @@ button[import="1"] {
.poptext label { .poptext label {
width: 100% !important; width: 100% !important;
text-align: center !important; text-align: center !important;
background-color: #ddd; background-color: rgba(0,0,0,0.8);
padding: 3px 0 3px 0;
color: white;
} }