cc: allow sliders to shrink to 0.5 height

related #3880
port 2.0

(cherry picked from commit 6bd0e24bd4)
This commit is contained in:
bbedward authored and dux-ci[bot] committed 2026-10-23 13:55:41 +00:00
1 parent 2befd45974
commit 58d741ec07
2 files changed
+10 -6

No files matched your search

@@ -17,7 +17,7 @@ function isSliderWidget(id) {
}
function canShrink(id) {
return id !== "user" && !isSliderWidget(id);
return id !== "user";
}
function isSmall(widget, rows) {
@@ -25,7 +25,7 @@ function isSmall(widget, rows) {
}
function canGroup(widget) {
return canShrink(widget?.id) && widget?.id !== GROUP_ID;
return canShrink(widget?.id) && !isSliderWidget(widget?.id) && widget?.id !== GROUP_ID;
}
// Members of a group that no longer exists fall back to the grid.
@@ -38,10 +38,12 @@ function inGroup(widget, ids) {
}
function groupMembers(widgets, groupId) {
return widgets.reduce((members, widget, index) => widget?.group === groupId && isShown(widget) ? members.concat([{
return widgets.reduce((members, widget, index) => widget?.group === groupId && isShown(widget) ? members.concat([
{
"index": index,
"widget": widget
}]) : members, []);
}
]) : members, []);
}
function isRemovable(widget) {