Fix empty space at the bottom.
This commit is contained in:
parent
da33bf3438
commit
39720a11dc
@ -372,10 +372,6 @@ button {
|
|||||||
overflow-y: scroll;
|
overflow-y: scroll;
|
||||||
}
|
}
|
||||||
|
|
||||||
#sliders {
|
|
||||||
padding: 5px 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#sliders .labels {
|
#sliders .labels {
|
||||||
padding-top: 3px;
|
padding-top: 3px;
|
||||||
}
|
}
|
||||||
|
@ -1297,27 +1297,12 @@ function setSliderAndColorControl(idx, applyDef=false)
|
|||||||
label.classList.add("hide");
|
label.classList.add("hide");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*if (topPosition>0)*/ topPosition += 10; // +padding
|
if (topPosition>0) { topPosition += 5; gId("sliders").style.paddingTop = "5px"; }
|
||||||
|
else gId("sliders").style.padding = 0;
|
||||||
|
|
||||||
// set size of fx list
|
// set size of fx list
|
||||||
gId("fx").style.height = `calc(100% - ${topPosition}px)`;
|
gId("fx").style.height = `calc(100% - ${topPosition}px)`;
|
||||||
|
|
||||||
/*
|
|
||||||
// set top position of the effect list
|
|
||||||
gId("fxFind").style.top = topPosition + "px";
|
|
||||||
topPosition += 42;
|
|
||||||
var fxList = gId("fxlist");
|
|
||||||
for (let f of fxList.children) f.style.top = null; // remove top
|
|
||||||
var selected = fxList.querySelector('.selected');
|
|
||||||
var sticky = fxList.querySelector('.sticky');
|
|
||||||
if (sticky) {
|
|
||||||
sticky.style.top = topPosition + "px";
|
|
||||||
topPosition += 42;
|
|
||||||
}
|
|
||||||
if (selected && !selected.style.top) { // is the sticky element also selected one?
|
|
||||||
selected.style.top = topPosition + "px";
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
// set html color items on/off
|
// set html color items on/off
|
||||||
var cslLabel = '';
|
var cslLabel = '';
|
||||||
var sep = '';
|
var sep = '';
|
||||||
|
2705
wled00/html_ui.h
2705
wled00/html_ui.h
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user