ilya_shyian 2 år sedan
förälder
incheckning
d7063b0628
1 ändrade filer med 1 tillägg och 1 borttagningar
  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>