ilya_shyian 2 年之前
父節點
當前提交
d7063b0628
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/components/CartPage/CartItem.js

+ 1 - 1
src/components/CartPage/CartItem.js

@@ -51,7 +51,7 @@ export const CartItem = ({ order, onDeleteClick }) => {
             </TableCell>
             <TableCell>
                 <Box sx={{ flexGrow: 1 }}>
-                    <Typography variant="h5">{name}</Typography>
+                    <Typography variant="h5">{name.length > 20 ? `${name.slice(0, 20)}...` : name}</Typography>
                     <Typography variant="body1">{price} ₴</Typography>
                 </Box>
             </TableCell>