nagasurendra commited on
Commit
49038d9
·
verified ·
1 Parent(s): 4923df8

Update templates/menu.html

Browse files
Files changed (1) hide show
  1. templates/menu.html +6 -8
templates/menu.html CHANGED
@@ -1158,8 +1158,8 @@
1158
  }
1159
  .ingredients-list, .menu-items-list, .customization-ingredients-list {
1160
  display: flex;
1161
- flex-wrap: nowrap;
1162
- overflow-x: auto;
1163
  padding: 10px;
1164
  margin: 10px 0;
1165
  background-color: #f5f7fa;
@@ -1168,7 +1168,8 @@
1168
  scroll-behavior: smooth;
1169
  }
1170
  .ingredient-item, .menu-item {
1171
- flex: 0 0 200px;
 
1172
  background-color: #ffffff;
1173
  border: 1px solid #e0e0e0;
1174
  border-radius: 10px;
@@ -1334,14 +1335,11 @@
1334
  padding: 8px 15px;
1335
  }
1336
  .ingredients-list, .menu-items-list, .customization-ingredients-list {
1337
- flex-direction: column;
1338
  gap: 10px;
1339
- padding: 8px;
1340
  }
1341
  .ingredient-item, .menu-item {
1342
- flex: 0 0 auto;
1343
- width: 100%;
1344
- max-width: 250px;
1345
  }
1346
  .ingredient-item img, .menu-item img {
1347
  height: 100px;
 
1158
  }
1159
  .ingredients-list, .menu-items-list, .customization-ingredients-list {
1160
  display: flex;
1161
+ flex-wrap: nowrap; /* Ensure items stay in a single row */
1162
+ overflow-x: auto; /* Allow horizontal scrolling */
1163
  padding: 10px;
1164
  margin: 10px 0;
1165
  background-color: #f5f7fa;
 
1168
  scroll-behavior: smooth;
1169
  }
1170
  .ingredient-item, .menu-item {
1171
+ flex: 0 0 auto; /* Ensure items don't stretch */
1172
+ width: 200px; /* Set a fixed width for each item */
1173
  background-color: #ffffff;
1174
  border: 1px solid #e0e0e0;
1175
  border-radius: 10px;
 
1335
  padding: 8px 15px;
1336
  }
1337
  .ingredients-list, .menu-items-list, .customization-ingredients-list {
1338
+ flex-direction: row; /* Keep the items in a row on mobile */
1339
  gap: 10px;
 
1340
  }
1341
  .ingredient-item, .menu-item {
1342
+ flex: 0 0 150px; /* Adjust the item width to fit smaller screens */
 
 
1343
  }
1344
  .ingredient-item img, .menu-item img {
1345
  height: 100px;