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,7 +198,9 @@ 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) {
ev.target.focus();
} else {
var showing = pop === lastPop; var showing = pop === lastPop;
hidePop(); hidePop();
if (!showing) { if (!showing) {
@ -206,6 +208,7 @@ var gs_moto_ui = exports;
lastPop = pop; lastPop = pop;
txt.focus(); txt.focus();
} }
}
}; };
addModeControls(btn, opt); addModeControls(btn, opt);
addId(btn, opt); addId(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;
} }