Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -359,6 +359,7 @@ def app():
|
|
| 359 |
</div>
|
| 360 |
""")
|
| 361 |
|
|
|
|
| 362 |
# Modal window for cart
|
| 363 |
modal_cart = gr.HTML(
|
| 364 |
"""
|
|
@@ -384,6 +385,7 @@ def app():
|
|
| 384 |
const cartModal = document.getElementById('cart-modal');
|
| 385 |
cartModal.style.display = show ? 'block' : 'none';
|
| 386 |
cartModal.style.height = show ? '70%' : '50px';
|
|
|
|
| 387 |
}
|
| 388 |
|
| 389 |
document.getElementById('view-cart-button').onclick = function() {
|
|
|
|
| 359 |
</div>
|
| 360 |
""")
|
| 361 |
|
| 362 |
+
|
| 363 |
# Modal window for cart
|
| 364 |
modal_cart = gr.HTML(
|
| 365 |
"""
|
|
|
|
| 385 |
const cartModal = document.getElementById('cart-modal');
|
| 386 |
cartModal.style.display = show ? 'block' : 'none';
|
| 387 |
cartModal.style.height = show ? '70%' : '50px';
|
| 388 |
+
cartModal.style.position = 'fixed';
|
| 389 |
}
|
| 390 |
|
| 391 |
document.getElementById('view-cart-button').onclick = function() {
|