nagasurendra commited on
Commit
b617ba0
·
verified ·
1 Parent(s): eb0c00a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -337,12 +337,14 @@ def app():
337
  value="All",
338
  label="Choose a Preference",
339
  )
 
340
 
341
  # Output area for menu items
342
  menu_output = gr.HTML(value=filter_menu("All"))
343
 
344
  # Button to navigate to Cart Page
345
  view_cart_button = gr.Button("View Cart")
 
346
 
347
  # Modal window
348
  modal_window = gr.HTML("""
@@ -350,7 +352,7 @@ def app():
350
  <div style="text-align: right;">
351
  <button onclick="closeModal()" style="background: none; border: none; font-size: 18px; cursor: pointer;">&times;</button>
352
  </div>
353
- <img id="modal-image" style="width: 100%; height: auto; border-radius: 8px; margin-bottom: 20px;" />
354
  <h2 id="modal-name"></h2>
355
  <p id="modal-description"></p>
356
  <p id="modal-price"></p>
 
337
  value="All",
338
  label="Choose a Preference",
339
  )
340
+ empty_div = gr.HTML('<div style="height: 20px;"></div>')
341
 
342
  # Output area for menu items
343
  menu_output = gr.HTML(value=filter_menu("All"))
344
 
345
  # Button to navigate to Cart Page
346
  view_cart_button = gr.Button("View Cart")
347
+ empty_div = gr.HTML('<div style="height: 300px;"></div>')
348
 
349
  # Modal window
350
  modal_window = gr.HTML("""
 
352
  <div style="text-align: right;">
353
  <button onclick="closeModal()" style="background: none; border: none; font-size: 18px; cursor: pointer;">&times;</button>
354
  </div>
355
+ <img id="modal-image" style="width: 100%; height: 300px; border-radius: 8px; margin-bottom: 20px;" />
356
  <h2 id="modal-name"></h2>
357
  <p id="modal-description"></p>
358
  <p id="modal-price"></p>