Rammohan0504 commited on
Commit
fdcdb76
·
verified ·
1 Parent(s): dc7d21e

Update templates/combined_summary.html

Browse files
Files changed (1) hide show
  1. templates/combined_summary.html +26 -14
templates/combined_summary.html CHANGED
@@ -83,33 +83,45 @@
83
  }
84
 
85
  /* Mobile Optimization */
86
- /* Mobile Optimization */
87
  @media (max-width: 768px) {
88
- .item-section {
89
- width: 100%;
90
  text-align: center;
91
  }
92
 
93
- .item-image {
94
  width: 100%;
95
- max-height: 400px; /* Use max-height to ensure the image doesn't overflow */
96
- object-fit: contain; /* Keep the image's aspect ratio intact */
97
- margin: 0 auto;
 
 
98
  }
99
 
100
- .ingredient {
101
- width: 100%;
102
- text-align: center;
 
103
  }
104
 
105
  .ingredient img {
106
- width: 100%;
107
- max-height: 200px; /* Keep height flexible for mobile screens */
108
- object-fit: contain; /* Make sure it scales appropriately */
109
- border-radius: 15px 15px 0 0; /* Keep rounded corners */
110
  }
111
  }
112
 
 
 
 
 
 
 
 
 
 
 
113
  @media (min-width: 768px) {
114
  .item-section {
115
  width: 48%;
 
83
  }
84
 
85
  /* Mobile Optimization */
 
86
  @media (max-width: 768px) {
87
+ .reward-status {
88
+ display: block; /* Make the items stack on top of each other */
89
  text-align: center;
90
  }
91
 
92
+ .item-section {
93
  width: 100%;
94
+ display: flex;
95
+ flex-direction: column; /* Ensure items are stacked vertically */
96
+ align-items: center; /* Center the content */
97
+ justify-content: center;
98
+ margin-bottom: 20px;
99
  }
100
 
101
+ .item-image {
102
+ width: 100%; /* Ensure it takes full width */
103
+ max-height: 400px; /* Limit max height */
104
+ object-fit: contain; /* Keep the aspect ratio intact */
105
  }
106
 
107
  .ingredient img {
108
+ width: 100%; /* Ensure it takes full width */
109
+ max-height: 200px; /* Limit max height */
110
+ object-fit: contain; /* Maintain aspect ratio */
111
+ border-radius: 15px 15px 0 0; /* Rounded top corners */
112
  }
113
  }
114
 
115
+ /* General Image Styles (Desktop and Mobile) */
116
+ .item-image {
117
+ width: 100%; /* Ensure image takes full container width */
118
+ height: auto; /* Let the height be calculated automatically */
119
+ max-height: 350px; /* Limit max height to avoid stretching */
120
+ object-fit: contain; /* Keep the aspect ratio intact */
121
+ border-radius: 8px;
122
+ }
123
+
124
+
125
  @media (min-width: 768px) {
126
  .item-section {
127
  width: 48%;