Improve dashboard widget sizing controls

This commit is contained in:
Rafael Foster
2026-05-01 09:05:20 -03:00
parent 9c5f8c9a99
commit f5377bd2f1
18 changed files with 468 additions and 63 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ const VALID_TIME_FORMATS = ['24h', '12h'];
const DEFAULT_TIME_FORMAT = '24h';
const VALID_WIDGET_IDS = ['tasks', 'calendar', 'weather', 'meals', 'shopping', 'birthdays', 'budget', 'family', 'notes'];
const VALID_WIDGET_SIZES = ['1x1', '2x1', '2x2', '3x1', '3x2', '4x1', '4x2'];
const VALID_WIDGET_SIZES = ['1x1', '1x2', '1x3', '1x4', '2x1', '2x2', '2x3', '2x4', '3x1', '3x2', '3x3', '3x4', '4x1', '4x2', '4x3', '4x4'];
function defaultWidgetSize(id) {
if (['tasks', 'calendar'].includes(id)) return '2x2';