nagasurendra commited on
Commit
3061b9f
·
verified ·
1 Parent(s): 69fe079

Update templates/cart.html

Browse files
Files changed (1) hide show
  1. templates/cart.html +13 -10
templates/cart.html CHANGED
@@ -64,20 +64,23 @@
64
  text-align: right; /* Center-align the price */
65
  white-space: nowrap; /* Prevent price text from wrapping */
66
  }
67
- /* Default for larger screens like desktops */
68
  .image-wrapper {
69
  width: 80px; /* Width of the image container */
70
- height: 140px !important; /* Height of the image container */
71
- display: flex; /* Flex container for the image */
72
- align-items: flex-start; /* Align the image at the top */
73
- justify-content: center; /* Center image horizontally if it has space */
74
  }
 
 
75
  .cart-item img {
76
- width: 70px; /* Set the width to 70px */
77
- height: 70px; /* Set the height to 70px */
78
- object-fit: contain; /* Ensure the whole image is visible */
79
- border-radius: 5px; /* Optional: rounded corners */
80
- border: 1px solid #ffcc80; /* Light orange border around images */
 
81
  }
82
 
83
 
 
64
  text-align: right; /* Center-align the price */
65
  white-space: nowrap; /* Prevent price text from wrapping */
66
  }
67
+ /* For the image container */
68
  .image-wrapper {
69
  width: 80px; /* Width of the image container */
70
+ height: 80px !important; /* Set the height of the container to match the image */
71
+ display: flex; /* Flex container for the image */
72
+ align-items: center; /* Center image vertically */
73
+ justify-content: center; /* Center image horizontally */
74
  }
75
+
76
+ /* For the image */
77
  .cart-item img {
78
+ width: 70px; /* Set the width to 70px */
79
+ height: 70px; /* Set the height to 70px */
80
+ object-fit: cover; /* Ensure the image covers the container without stretching */
81
+ border-radius: 5px; /* Optional: rounded corners */
82
+ border: 1px solid #ffcc80; /* Light orange border around images */
83
+ margin: 0; /* Ensure no extra space around the image */
84
  }
85
 
86