nagasurendra commited on
Commit
a31381c
·
verified ·
1 Parent(s): 2ab5486

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = 'fixed';
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: fixed; 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;">&times;</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;">&times;</button>
328
  </div>