Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -134,6 +134,9 @@ def app():
|
|
| 134 |
function openModal(name, image, description, price) {
|
| 135 |
const modal = document.getElementById('modal');
|
| 136 |
modal.style.display = 'block';
|
|
|
|
|
|
|
|
|
|
| 137 |
document.getElementById('modal-image').src = image;
|
| 138 |
document.getElementById('modal-name').innerText = name;
|
| 139 |
document.getElementById('modal-description').innerText = description;
|
|
|
|
| 134 |
function openModal(name, image, description, price) {
|
| 135 |
const modal = document.getElementById('modal');
|
| 136 |
modal.style.display = 'block';
|
| 137 |
+
modal.style.top = '50%';
|
| 138 |
+
modal.style.left = '50%';
|
| 139 |
+
modal.style.transform = 'translate(-50%, -50%)';
|
| 140 |
document.getElementById('modal-image').src = image;
|
| 141 |
document.getElementById('modal-name').innerText = name;
|
| 142 |
document.getElementById('modal-description').innerText = description;
|