mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 02:46:23 +00:00
fix fullscreen Button tooltip position
This commit is contained in:
parent
8c04019647
commit
bade6aa491
4 changed files with 13 additions and 2 deletions
|
@ -427,6 +427,11 @@
|
||||||
opacity: 1;
|
opacity: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ejs_menu_text_right {
|
||||||
|
right: 0;
|
||||||
|
left: auto !important;
|
||||||
|
}
|
||||||
|
|
||||||
.ejs_menu_text {
|
.ejs_menu_text {
|
||||||
left: 0;
|
left: 0;
|
||||||
background: rgba(255,255,255,0.9);
|
background: rgba(255,255,255,0.9);
|
||||||
|
@ -462,6 +467,11 @@
|
||||||
width: 0;
|
width: 0;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
}
|
}
|
||||||
|
.ejs_menu_text_right::before {
|
||||||
|
left: auto !important;
|
||||||
|
right: 16px;
|
||||||
|
transform: translateX(50%) !important;
|
||||||
|
}
|
||||||
.ejs_menu_bar {
|
.ejs_menu_bar {
|
||||||
padding: 15px 10px 10px;
|
padding: 15px 10px 10px;
|
||||||
background: linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0.7));
|
background: linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0.7));
|
||||||
|
|
|
@ -1409,6 +1409,7 @@ class EmulatorJS {
|
||||||
svg.innerHTML = image;
|
svg.innerHTML = image;
|
||||||
const text = this.createElement("span");
|
const text = this.createElement("span");
|
||||||
text.innerText = this.localization(title);
|
text.innerText = this.localization(title);
|
||||||
|
if (title == "Enter Fullscreen" || title == "Exit Fullscreen") text.classList.add("ejs_menu_text_right");
|
||||||
text.classList.add("ejs_menu_text");
|
text.classList.add("ejs_menu_text");
|
||||||
|
|
||||||
button.classList.add("ejs_menu_button");
|
button.classList.add("ejs_menu_button");
|
||||||
|
|
2
data/emulator.min.css
vendored
2
data/emulator.min.css
vendored
File diff suppressed because one or more lines are too long
2
data/emulator.min.js
vendored
2
data/emulator.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue