Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -148,7 +148,7 @@ popup_html = """
|
|
| 148 |
|
| 149 |
# Generate dish cards
|
| 150 |
def display_dishes(category):
|
| 151 |
-
html_content = "<div style='display: flex; flex-direction: column; gap: 20px; min-height:100vh;
|
| 152 |
for dish in menu_data:
|
| 153 |
if category == "ALL" or dish["category"] == category:
|
| 154 |
html_content += f"""
|
|
@@ -171,7 +171,7 @@ def display_dishes(category):
|
|
| 171 |
return html_content
|
| 172 |
|
| 173 |
# Main Gradio App
|
| 174 |
-
with gr.Blocks()
|
| 175 |
gr.HTML(popup_html) # Add the popup container and overlay
|
| 176 |
gr.HTML(popup_js) # Add the JavaScript
|
| 177 |
|
|
|
|
| 148 |
|
| 149 |
# Generate dish cards
|
| 150 |
def display_dishes(category):
|
| 151 |
+
html_content = "<div style='display: flex; flex-direction: column; gap: 20px; min-height:100vh; padding-bottom: 20px; box-sizing: border-box;'>"
|
| 152 |
for dish in menu_data:
|
| 153 |
if category == "ALL" or dish["category"] == category:
|
| 154 |
html_content += f"""
|
|
|
|
| 171 |
return html_content
|
| 172 |
|
| 173 |
# Main Gradio App
|
| 174 |
+
with gr.Blocks (css="#dish-container {min-height: 100vh; overflow-y: auto;}") as demo:
|
| 175 |
gr.HTML(popup_html) # Add the popup container and overlay
|
| 176 |
gr.HTML(popup_js) # Add the JavaScript
|
| 177 |
|