diff --git a/packages/main/src/components/Form/index.tsx b/packages/main/src/components/Form/index.tsx index 39968c3c0a7..01e443f38d7 100644 --- a/packages/main/src/components/Form/index.tsx +++ b/packages/main/src/components/Form/index.tsx @@ -234,8 +234,8 @@ const Form = forwardRef((props, ref) => { }); if (onlyFormItems) { - // if the last column only contains one row, balance it with the previous column - if (columnsWithItems.at(-1)?.length === 1 && columnsWithItems.at(-2)?.length > 1) { + // if the last column only contains one row, balance it with the previous column (only if the previous column has 3 or more rows) + if (columnsWithItems.at(-1)?.length === 1 && columnsWithItems.at(-2)?.length > 2) { columnsWithItems.at(-1).unshift(columnsWithItems.at(-2).pop()); } columnsWithItems.forEach((columnItems, columnIndex) => {