move hidden widgets to the bottom of the dashboard

This commit is contained in:
chfhtw
2026-04-02 16:36:04 +02:00
parent 4d9ff395e9
commit e6eed4be4e
+10
View File
@@ -156,6 +156,16 @@ export default {
} else {
let update = {};
update[item.id] = { hidden: !revert };
if (!revert) {
// NOTE(chris): move to last line
update[item.id].place = [];
let y = this.gridHeight;
if (this.additionalRow)
y--;
update[item.id].place[this.gridWidth] = { x: 0, y };
}
this.updatePreset(update);
}
},