Optimisations, and fix variable multiplier in tooltip()

This commit is contained in:
Alerson Jorge 2023-10-20 19:13:45 -03:00
parent 2d3039c6a2
commit a933fcf7e2
3 changed files with 1665 additions and 1663 deletions

View File

@ -477,6 +477,7 @@ button {
text-align: center;
padding: 8px 16px;
border-radius: 6px;
z-index: 1;
}
.tooltip::after {

View File

@ -2953,7 +2953,7 @@ function tooltip()
const { offsetHeight, offsetWidth } = tooltip;
const multiplier = element.className === "slider" ? 0 : .3;
const multiplier = element.classList.contains("sliderwrap") ? .2 : .4;
top -= (offsetHeight + (offsetHeight * multiplier));
left += (width / 2) - (offsetWidth / 2);

File diff suppressed because it is too large Load Diff