Rammohan0504 commited on
Commit
4ef1d38
·
verified ·
1 Parent(s): 40981d2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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: 200px; height: auto; 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,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: 50%; max-width: 400px; 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
 
 
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