Merge pull request #641 from allancoding/main

Fix the button toggles
This commit is contained in:
Allan Niles 2023-08-26 18:05:17 -06:00 committed by GitHub
commit 28b67e026c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 4 deletions

View file

@ -599,6 +599,14 @@
font-size: 14px; font-size: 14px;
} }
.ejs_control_row label::before {
top: -0.15rem !important;
}
.ejs_control_row label::after {
top: calc(-0.15rem + 2px) !important;
}
.ejs_popup_box { .ejs_popup_box {
position: absolute; position: absolute;
width: 300px; width: 300px;
@ -1109,7 +1117,7 @@
.ejs_cheat_row label::before { .ejs_cheat_row label::before {
position: absolute; position: absolute;
top: .325rem; top: 0rem;
display: block; display: block;
height: 1rem; height: 1rem;
content: ""; content: "";
@ -1133,7 +1141,7 @@
content: ""; content: "";
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: center center; background-position: center center;
top: calc(.325rem + 2px); top: calc(0rem + 2px);
left: calc(-2.25rem + 2px); left: calc(-2.25rem + 2px);
width: calc(1rem - 4px); width: calc(1rem - 4px);
height: calc(1rem - 4px); height: calc(1rem - 4px);

View file

@ -2177,6 +2177,7 @@ class EmulatorJS {
if ((this.touch || navigator.maxTouchPoints > 0) && i === 0) { if ((this.touch || navigator.maxTouchPoints > 0) && i === 0) {
const vgp = this.createElement("div"); const vgp = this.createElement("div");
vgp.style = "width:25%;float:right;clear:none;padding:0;font-size: 11px;padding-left: 2.25rem;"; vgp.style = "width:25%;float:right;clear:none;padding:0;font-size: 11px;padding-left: 2.25rem;";
vgp.classList.add("ejs_control_row");
vgp.classList.add("ejs_cheat_row"); vgp.classList.add("ejs_cheat_row");
const input = this.createElement("input"); const input = this.createElement("input");
input.type = "checkbox"; input.type = "checkbox";

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long