mirror of
https://github.com/EmulatorJS/EmulatorJS.git
synced 2024-09-20 10:56:30 +00:00
Merge pull request #640 from allancoding/main
Fix Fullscreen Button tooltip position
This commit is contained in:
commit
7aa5b18723
4 changed files with 13 additions and 2 deletions
|
@ -427,6 +427,11 @@
|
|||
opacity: 1;
|
||||
}
|
||||
|
||||
.ejs_menu_text_right {
|
||||
right: 0;
|
||||
left: auto !important;
|
||||
}
|
||||
|
||||
.ejs_menu_text {
|
||||
left: 0;
|
||||
background: rgba(255,255,255,0.9);
|
||||
|
@ -462,6 +467,11 @@
|
|||
width: 0;
|
||||
z-index: 2;
|
||||
}
|
||||
.ejs_menu_text_right::before {
|
||||
left: auto !important;
|
||||
right: 16px;
|
||||
transform: translateX(50%) !important;
|
||||
}
|
||||
.ejs_menu_bar {
|
||||
padding: 15px 10px 10px;
|
||||
background: linear-gradient(rgba(0,0,0,0),rgba(0,0,0,0.7));
|
||||
|
|
|
@ -1409,6 +1409,7 @@ class EmulatorJS {
|
|||
svg.innerHTML = image;
|
||||
const text = this.createElement("span");
|
||||
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");
|
||||
|
||||
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