Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -56,7 +56,8 @@ with gr.Blocks() as demo:
|
|
| 56 |
with gr.Row():
|
| 57 |
gr.HTML(generate_food_menu()) # Render food menu
|
| 58 |
gr.HTML("""
|
| 59 |
-
<div id=\"popup\" class=\"popup\" style=\"display:none; position:fixed; top:50%; left:50%; transform:translate(-50%, -50%); max-width:90%; width:600px; background:rgba(255, 255, 255, 0.95); display:flex; flex-direction: column; justify-content:center; align-items:center; border-radius: 15px; padding: 20px; box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);\">
|
|
|
|
| 60 |
<div class=\"popup-content\" style=\"background:#fff; padding:20px; border-radius:15px; width:100%; text-align:center;\">
|
| 61 |
<img id=\"popup-image\" src=\"\" alt=\"Food Image\" style=\"width:100%; height:auto; border-radius:10px;\">
|
| 62 |
<h2 id=\"popup-name\" style=\"margin: 15px 0;\"></h2>
|
|
|
|
| 56 |
with gr.Row():
|
| 57 |
gr.HTML(generate_food_menu()) # Render food menu
|
| 58 |
gr.HTML("""
|
| 59 |
+
<div id=\"popup\" class=\"popup\" style=\"display:none; position:fixed; top:50%; left:50%; transform:translate(-50%, -50%); max-width:90%; width:600px; max-height:90%; overflow-y:auto; background:rgba(255, 255, 255, 0.95); display:flex; flex-direction: column; justify-content:center; align-items:center; border-radius: 15px; padding: 20px; box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.25);\">
|
| 60 |
+
<button onclick=\"closePopup()\" style=\"position:absolute; top:10px; right:10px; background:none; border:none; font-size:20px; cursor:pointer;\">×</button>
|
| 61 |
<div class=\"popup-content\" style=\"background:#fff; padding:20px; border-radius:15px; width:100%; text-align:center;\">
|
| 62 |
<img id=\"popup-image\" src=\"\" alt=\"Food Image\" style=\"width:100%; height:auto; border-radius:10px;\">
|
| 63 |
<h2 id=\"popup-name\" style=\"margin: 15px 0;\"></h2>
|