diff --git a/home/js/app.ts b/home/js/app.ts index 0324a9a59b..0ad46d59cd 100644 --- a/home/js/app.ts +++ b/home/js/app.ts @@ -503,7 +503,10 @@ export class HomeApp extends EgwApp { if(col + span > maxColumn) { - span = Math.min(span, (maxColumn - (parseInt(Object.keys(col_map[row]).at(-1)) || col))); + span = Math.max( + 1, + Math.min(span, (maxColumn - (parseInt(Object.keys(col_map[row]).at(-1)) || col))) + ); } // Set column to auto to avoid overlap n.style.gridColumn = "auto / span " + span;