Subbu1304 commited on
Commit
8ee19e7
·
verified ·
1 Parent(s): 1a4c624

Update templates/cart.html

Browse files
Files changed (1) hide show
  1. templates/cart.html +11 -1
templates/cart.html CHANGED
@@ -13,6 +13,16 @@
13
  background-color: #f3f4f6;
14
  color: #333;
15
  }
 
 
 
 
 
 
 
 
 
 
16
  .cart-container {
17
  max-width: 768px;
18
  margin: 20px auto;
@@ -371,7 +381,7 @@
371
  <!-- Cart Items -->
372
  <div class="cart-container2">
373
  {% for item in cart_items %}
374
- <div class="cart-item">
375
  <div class="image-wrapper">
376
  <img src="{{ item.Image1__c }}" alt="{{ item.Name }}" onerror="this.src='/static/placeholder.jpg';">
377
  </div>
 
13
  background-color: #f3f4f6;
14
  color: #333;
15
  }
16
+
17
+
18
+ .instructions {
19
+ white-space: normal; /* Allow text to wrap */
20
+ word-wrap: break-word; /* Break long words */
21
+ overflow: hidden; /* Hide overflowed content */
22
+ text-overflow: ellipsis; /* Add ellipsis if content overflows */
23
+ max-height: 80px; /* Limit the height to fit within the card */
24
+ }
25
+
26
  .cart-container {
27
  max-width: 768px;
28
  margin: 20px auto;
 
381
  <!-- Cart Items -->
382
  <div class="cart-container2">
383
  {% for item in cart_items %}
384
+ <div class="cart-item instructions">
385
  <div class="image-wrapper">
386
  <img src="{{ item.Image1__c }}" alt="{{ item.Name }}" onerror="this.src='/static/placeholder.jpg';">
387
  </div>