| @@ -1272,7 +1272,17 @@ const ApproverStockTakeAll: React.FC<ApproverStockTakeAllProps> = ({ | |||||
| align: "center", | align: "center", | ||||
| headerAlign: "center", | headerAlign: "center", | ||||
| renderCell: (params) => ( | renderCell: (params) => ( | ||||
| <Typography variant="body2" sx={{ width: "100%", textAlign: "center" }}> | |||||
| <Typography | |||||
| component="div" | |||||
| sx={{ | |||||
| width: "100%", | |||||
| textAlign: "center", | |||||
| fontWeight: 800, | |||||
| fontSize: "1.15rem", | |||||
| lineHeight: 1.3, | |||||
| color: "text.primary", | |||||
| }} | |||||
| > | |||||
| {params.row.uom || "-"} | {params.row.uom || "-"} | ||||
| </Typography> | </Typography> | ||||
| ), | ), | ||||
| @@ -2194,13 +2204,7 @@ const ApproverStockTakeAll: React.FC<ApproverStockTakeAllProps> = ({ | |||||
| ? ` · ${t("Stock Take Section code")}: ${group.sectionLabels.join(", ")}` | ? ` · ${t("Stock Take Section code")}: ${group.sectionLabels.join(", ")}` | ||||
| : ""} | : ""} | ||||
| </Typography> | </Typography> | ||||
| <Box | |||||
| sx={{ | |||||
| width: "100%", | |||||
| minHeight: 120, | |||||
| height: Math.min(700, 72 + group.items.length * 110), | |||||
| }} | |||||
| > | |||||
| <Box sx={{ width: "100%", minHeight: 120 }}> | |||||
| <StyledDataGrid | <StyledDataGrid | ||||
| rows={group.items} | rows={group.items} | ||||
| columns={columns} | columns={columns} | ||||
| @@ -2208,6 +2212,7 @@ const ApproverStockTakeAll: React.FC<ApproverStockTakeAllProps> = ({ | |||||
| loading={loadingDetails} | loading={loadingDetails} | ||||
| disableRowSelectionOnClick | disableRowSelectionOnClick | ||||
| hideFooter | hideFooter | ||||
| autoHeight | |||||
| getRowHeight={() => "auto"} | getRowHeight={() => "auto"} | ||||
| sx={{ | sx={{ | ||||
| backgroundColor: "transparent", | backgroundColor: "transparent", | ||||