nagasurendra commited on
Commit
6516f1e
·
verified ·
1 Parent(s): d59f645

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -87,11 +87,11 @@ def filter_menu(preference):
87
  if preference == "All" or (preference == "Veg" and item["Veg_NonVeg__c"] in ["Veg", "Both"]) or (preference == "Non-Veg" and item["Veg_NonVeg__c"] in ["Non veg", "Both"]):
88
  filtered_data[item["Section__c"].strip()].append(item)
89
 
90
- html_content = '<div style="padding: 20px; max-width: 1200px; margin: auto;">'
91
  for section, items in filtered_data.items():
92
  if items:
93
- html_content += f"<h2 style='text-align: center;'>{section}</h2>"
94
- html_content += '<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; justify-content: center;">'
95
  for item in items:
96
  html_content += f"""
97
  <div style="border: 1px solid #ddd; border-radius: 10px; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); overflow: hidden;">
 
87
  if preference == "All" or (preference == "Veg" and item["Veg_NonVeg__c"] in ["Veg", "Both"]) or (preference == "Non-Veg" and item["Veg_NonVeg__c"] in ["Non veg", "Both"]):
88
  filtered_data[item["Section__c"].strip()].append(item)
89
 
90
+ html_content = '<div style="padding: 10px; max-width: 1200px; margin: auto;">'
91
  for section, items in filtered_data.items():
92
  if items:
93
+ html_content += f"<h2 style='text-align: center; margin-top: 20px;'>{section}</h2>"
94
+ html_content += '<div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; justify-content: center;">'
95
  for item in items:
96
  html_content += f"""
97
  <div style="border: 1px solid #ddd; border-radius: 10px; box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1); overflow: hidden;">