mirror of
https://github.com/wled/WLED.git
synced 2025-07-23 18:56:41 +00:00
Optimisations, and fix variable multiplier in tooltip()
This commit is contained in:
parent
2d3039c6a2
commit
a933fcf7e2
@ -477,6 +477,7 @@ button {
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
padding: 8px 16px;
|
padding: 8px 16px;
|
||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
|
z-index: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tooltip::after {
|
.tooltip::after {
|
||||||
|
@ -2953,7 +2953,7 @@ function tooltip()
|
|||||||
|
|
||||||
const { offsetHeight, offsetWidth } = tooltip;
|
const { offsetHeight, offsetWidth } = tooltip;
|
||||||
|
|
||||||
const multiplier = element.className === "slider" ? 0 : .3;
|
const multiplier = element.classList.contains("sliderwrap") ? .2 : .4;
|
||||||
top -= (offsetHeight + (offsetHeight * multiplier));
|
top -= (offsetHeight + (offsetHeight * multiplier));
|
||||||
left += (width / 2) - (offsetWidth / 2);
|
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…
x
Reference in New Issue
Block a user