ilya_shyian 2 lat temu
rodzic
commit
d7063b0628
1 zmienionych plików z 1 dodań i 1 usunięć
  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>