fixing this dialog never gets old
This commit is contained in:
parent
ddc758c17c
commit
cb795870ee
2 changed files with 14 additions and 9 deletions
|
|
@ -198,13 +198,16 @@ var gs_moto_ui = exports;
|
|||
btn.parentNode.onclick = btn.onclick;
|
||||
ev.stopPropagation();
|
||||
// drop clicks on TextArea
|
||||
if (ev.target === txt) return;
|
||||
var showing = pop === lastPop;
|
||||
hidePop();
|
||||
if (!showing) {
|
||||
pop.style.display = "flex";
|
||||
lastPop = pop;
|
||||
txt.focus();
|
||||
if (ev.target === txt) {
|
||||
ev.target.focus();
|
||||
} else {
|
||||
var showing = pop === lastPop;
|
||||
hidePop();
|
||||
if (!showing) {
|
||||
pop.style.display = "flex";
|
||||
lastPop = pop;
|
||||
txt.focus();
|
||||
}
|
||||
}
|
||||
};
|
||||
addModeControls(btn, opt);
|
||||
|
|
|
|||
|
|
@ -583,7 +583,7 @@ button[import="1"] {
|
|||
display: none;
|
||||
position: absolute;
|
||||
margin-left: 30px;
|
||||
border: 5px solid gray;
|
||||
border: 3px solid gray;
|
||||
border-radius: 3px;
|
||||
transform: translate(0, -25%);
|
||||
z-Index: 10000;
|
||||
|
|
@ -595,5 +595,7 @@ button[import="1"] {
|
|||
.poptext label {
|
||||
width: 100% !important;
|
||||
text-align: center !important;
|
||||
background-color: #ddd;
|
||||
background-color: rgba(0,0,0,0.8);
|
||||
padding: 3px 0 3px 0;
|
||||
color: white;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue