nagasurendra commited on
Commit
d9d621a
·
verified ·
1 Parent(s): 1d769e4

Update templates/cart.html

Browse files
Files changed (1) hide show
  1. templates/cart.html +8 -6
templates/cart.html CHANGED
@@ -282,7 +282,7 @@
282
  align-items: center; /* Center image and text vertically */
283
  justify-content: flex-start; /* Align items to the start (left side) */
284
  flex-shrink: 0;
285
- width: 160px; /* Set fixed width for each suggestion item */
286
  padding: 10px;
287
  border-radius: 8px; /* Rounded corners */
288
  background-color: #fff;
@@ -291,6 +291,7 @@
291
  margin-right: 10px; /* Ensure there's space between the cards */
292
  position: relative; /* For positioning the + icon */
293
  text-align: left; /* Align text to the left */
 
294
  }
295
 
296
  .suggestion-item:hover {
@@ -298,8 +299,8 @@
298
  }
299
 
300
  .suggestion-item img {
301
- width: 50px; /* Set a fixed width for the image */
302
- height: 50px; /* Set a fixed height for the image */
303
  object-fit: cover; /* Ensure image fits correctly without distortion */
304
  border-radius: 5px; /* Rounded corners for the image */
305
  margin-right: 12px; /* Space between the image and text */
@@ -307,14 +308,15 @@
307
 
308
  .suggestion-item div {
309
  flex-grow: 1; /* Allow the text section to expand and fill available space */
 
310
  }
311
 
312
  /* Styling for the + symbol button (with green border, white background, and black text) */
313
  .add-back-button {
314
  position: absolute;
315
- top: 5px; /* Position at the top */
316
- right: 5px; /* Position at the top-right */
317
- font-size: 1.3rem; /* Increase size of the + symbol */
318
  padding: 6px 10px; /* Button padding */
319
  background-color: #fff; /* White background */
320
  color: #000; /* Black color for the + symbol */
 
282
  align-items: center; /* Center image and text vertically */
283
  justify-content: flex-start; /* Align items to the start (left side) */
284
  flex-shrink: 0;
285
+ width: 180px; /* Adjust width for more content */
286
  padding: 10px;
287
  border-radius: 8px; /* Rounded corners */
288
  background-color: #fff;
 
291
  margin-right: 10px; /* Ensure there's space between the cards */
292
  position: relative; /* For positioning the + icon */
293
  text-align: left; /* Align text to the left */
294
+ overflow: hidden; /* Prevent text from overflowing outside the card */
295
  }
296
 
297
  .suggestion-item:hover {
 
299
  }
300
 
301
  .suggestion-item img {
302
+ width: 60px; /* Set a fixed width for the image */
303
+ height: 60px; /* Set a fixed height for the image */
304
  object-fit: cover; /* Ensure image fits correctly without distortion */
305
  border-radius: 5px; /* Rounded corners for the image */
306
  margin-right: 12px; /* Space between the image and text */
 
308
 
309
  .suggestion-item div {
310
  flex-grow: 1; /* Allow the text section to expand and fill available space */
311
+ text-align: left; /* Align text to the left */
312
  }
313
 
314
  /* Styling for the + symbol button (with green border, white background, and black text) */
315
  .add-back-button {
316
  position: absolute;
317
+ top: -10px; /* Position the + symbol slightly outside of the card */
318
+ right: -10px; /* Position at the top-right, slightly outside */
319
+ font-size: 1.5rem; /* Increase size of the + symbol */
320
  padding: 6px 10px; /* Button padding */
321
  background-color: #fff; /* White background */
322
  color: #000; /* Black color for the + symbol */