Optimisations, and fix variable multiplier in tooltip()
This commit is contained in:
parent
2d3039c6a2
commit
a933fcf7e2
@ -477,6 +477,7 @@ button {
|
||||
text-align: center;
|
||||
padding: 8px 16px;
|
||||
border-radius: 6px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.tooltip::after {
|
||||
|
@ -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);
|
||||
|
||||
|
3317
wled00/html_ui.h
3317
wled00/html_ui.h
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user