Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -135,7 +135,7 @@ modal_and_cart_js = """
|
|
| 135 |
}
|
| 136 |
const modal = document.getElementById('modal');
|
| 137 |
modal.style.display = 'block';
|
| 138 |
-
modal.style.position = '
|
| 139 |
if (window.innerWidth <= 768) {
|
| 140 |
modal.style.width = '90%';
|
| 141 |
} else {
|
|
@@ -322,7 +322,7 @@ def app():
|
|
| 322 |
|
| 323 |
# Modal window
|
| 324 |
modal_window = gr.HTML("""
|
| 325 |
-
<div id="modal" style="display: none; position:
|
| 326 |
<div style="text-align: right;">
|
| 327 |
<button onclick="closeModal()" style="background: none; border: none; font-size: 18px; cursor: pointer;">×</button>
|
| 328 |
</div>
|
|
|
|
| 135 |
}
|
| 136 |
const modal = document.getElementById('modal');
|
| 137 |
modal.style.display = 'block';
|
| 138 |
+
modal.style.position = 'absolute';
|
| 139 |
if (window.innerWidth <= 768) {
|
| 140 |
modal.style.width = '90%';
|
| 141 |
} else {
|
|
|
|
| 322 |
|
| 323 |
# Modal window
|
| 324 |
modal_window = gr.HTML("""
|
| 325 |
+
<div id="modal" style="display: none; position: absolute; background: white; border-radius: 8px; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); padding: 20px; z-index: 1000;">
|
| 326 |
<div style="text-align: right;">
|
| 327 |
<button onclick="closeModal()" style="background: none; border: none; font-size: 18px; cursor: pointer;">×</button>
|
| 328 |
</div>
|