Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -99,7 +99,7 @@ popup_js = """
|
|
| 99 |
const popup = document.getElementById("custom-popup");
|
| 100 |
const overlay = document.getElementById("overlay");
|
| 101 |
popup.innerHTML = `
|
| 102 |
-
<img src="${image}" alt="${name}" style="width:
|
| 103 |
<h3 style="margin-top: 10px;">${name}</h3>
|
| 104 |
<p>${description}</p>
|
| 105 |
<p style="font-weight: bold;">Price: ${price}</p>
|
|
@@ -142,7 +142,7 @@ popup_js = """
|
|
| 142 |
popup_html = """
|
| 143 |
<div id="overlay" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; z-index: 999;"></div>
|
| 144 |
<div id="custom-popup"
|
| 145 |
-
style="position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width:
|
| 146 |
</div>
|
| 147 |
"""
|
| 148 |
|
|
|
|
| 99 |
const popup = document.getElementById("custom-popup");
|
| 100 |
const overlay = document.getElementById("overlay");
|
| 101 |
popup.innerHTML = `
|
| 102 |
+
<img src="${image}" alt="${name}" style="width: auto; height: 250px; border-radius: 10px; margin-bottom: 10px;">
|
| 103 |
<h3 style="margin-top: 10px;">${name}</h3>
|
| 104 |
<p>${description}</p>
|
| 105 |
<p style="font-weight: bold;">Price: ${price}</p>
|
|
|
|
| 142 |
popup_html = """
|
| 143 |
<div id="overlay" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; z-index: 999;"></div>
|
| 144 |
<div id="custom-popup"
|
| 145 |
+
style="position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60%; max-width: 600px; background: white; padding: 20px; border-radius: 10px; box-shadow: 0px 4px 6px rgba(0,0,0,0.1); display: none; z-index: 1000; text-align: center;">
|
| 146 |
</div>
|
| 147 |
"""
|
| 148 |
|