diff --git a/src/admin/components/document/DocumentItemsEditor.tsx b/src/admin/components/document/DocumentItemsEditor.tsx index 78d05c8..40225d9 100644 --- a/src/admin/components/document/DocumentItemsEditor.tsx +++ b/src/admin/components/document/DocumentItemsEditor.tsx @@ -214,7 +214,8 @@ function SortableItemRow({ placeholder="Volitelný" InputProps={{ readOnly }} multiline - rows={2} + minRows={2} + maxRows={16} slotProps={{ htmlInput: { maxLength: itemDescriptionMaxLength } }} sx={{ "& textarea": { resize: "vertical" } }} /> @@ -352,7 +353,8 @@ function SortableItemRow({ placeholder="Podrobný popis (volitelný)" InputProps={{ readOnly }} multiline - rows={2} + minRows={2} + maxRows={16} slotProps={{ htmlInput: { maxLength: itemDescriptionMaxLength } }} sx={{ "& textarea": { diff --git a/src/admin/pages/InvoiceDetail.tsx b/src/admin/pages/InvoiceDetail.tsx index 6656079..7ef2c2a 100644 --- a/src/admin/pages/InvoiceDetail.tsx +++ b/src/admin/pages/InvoiceDetail.tsx @@ -317,7 +317,8 @@ function SortableInvoiceRow({ onChange={(e) => onUpdate(index, "item_description", e.target.value)} placeholder="Volitelný" multiline - rows={2} + minRows={2} + maxRows={16} sx={{ "& textarea": { resize: "vertical" } }} />