mirror of
https://github.com/wled/WLED.git
synced 2025-04-23 14:27:18 +00:00
Minor optimizations
This commit is contained in:
parent
930a1ae450
commit
21c2316f6b
@ -371,7 +371,7 @@ button {
|
||||
}
|
||||
|
||||
/* Quick load magin for simplified UI */
|
||||
#pql.simplified {
|
||||
.simplified #pql {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
@ -772,8 +772,8 @@ input[type=range]::-moz-range-thumb {
|
||||
.hd {
|
||||
display: var(--bhd);
|
||||
}
|
||||
/* Do not hide labels in simplified mode on small screen widths */
|
||||
.simplified > .hd {
|
||||
/* Do not hide quick load label in simplified mode on small screen widths */
|
||||
.simplified #pql .hd {
|
||||
display: var(--bhd) !important;
|
||||
}
|
||||
|
||||
|
@ -3105,17 +3105,16 @@ function simplifyUI() {
|
||||
}
|
||||
// Put preset quick load before palette list and segemts
|
||||
gId("Colors").insertBefore(gId("pql"), gId("pall"));
|
||||
gId("pql").classList.add("simplified");
|
||||
|
||||
// Create dropdown for palette list
|
||||
createDropdown("palw", "Change palette");
|
||||
createDropdown("fx", "Change effect", [gId("fxFind"), gId("fxlist")]);
|
||||
|
||||
// Hide pallete label
|
||||
gId("pall").classList.add("hide");
|
||||
gId("pall").style.display = "none";
|
||||
gId("Colors").insertBefore(document.createElement("br"), gId("pall"));
|
||||
// Hide effect label
|
||||
gId("modeLabel").classList.add("hide");
|
||||
gId("modeLabel").style.display = "none";
|
||||
|
||||
// Hide buttons in top bar
|
||||
gId("buttonNl").style.display = "none";
|
||||
|
Loading…
x
Reference in New Issue
Block a user