oberbics commited on
Commit
70748ba
·
verified ·
1 Parent(s): 4c0fe2d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -391,8 +391,9 @@ with gr.Blocks(css=custom_css) as mapping_interface:
391
 
392
  if map_html and processed_path:
393
  # Create responsive container for the map that fills the available space
 
394
  responsive_html = f"""
395
- <div style="width:100%; height:70vh; margin:0; padding:0; border:1px solid #e0e0e0; border-radius:8px; overflow:hidden; position:relative;">
396
  <style>
397
  /* Fix map sizing issues */
398
  .leaflet-container {{
@@ -402,6 +403,11 @@ with gr.Blocks(css=custom_css) as mapping_interface:
402
  top: 0;
403
  left: 0;
404
  }}
 
 
 
 
 
405
  </style>
406
  {map_html}
407
  </div>
 
391
 
392
  if map_html and processed_path:
393
  # Create responsive container for the map that fills the available space
394
+ # Remove extra height that was causing empty space below
395
  responsive_html = f"""
396
+ <div style="width:100%; height:60vh; margin:0 0 -150px 0; padding:0; border:1px solid #e0e0e0; border-radius:8px; overflow:hidden; position:relative;">
397
  <style>
398
  /* Fix map sizing issues */
399
  .leaflet-container {{
 
403
  top: 0;
404
  left: 0;
405
  }}
406
+ /* Hide any overflow that might cause extra space */
407
+ #map_container {{
408
+ overflow: hidden !important;
409
+ margin-bottom: 0 !important;
410
+ }}
411
  </style>
412
  {map_html}
413
  </div>