CodexCLI Bot commited on
Commit
ed6413c
Β·
1 Parent(s): 6241703

UI: move CAMEL line into HTML with zero bottom margin to eliminate gap; keep first row top margin minimal

Browse files
Files changed (1) hide show
  1. app.py +8 -6
app.py CHANGED
@@ -3428,7 +3428,8 @@ def debug_compile():
3428
  # Gradio UI
3429
  # =====================
3430
  with gr.Blocks(title="πŸŽ“ Paper2Poster") as iface:
3431
- gr.Markdown("# πŸŽ“ Paper2Poster")
 
3432
  gr.Markdown("""
3433
  [Paper](https://arxiv.org/abs/2505.21497) | [GitHub](https://github.com/Paper2Poster/Paper2Poster) | [Project Page](https://paper2poster.github.io/)
3434
 
@@ -3436,15 +3437,16 @@ with gr.Blocks(title="πŸŽ“ Paper2Poster") as iface:
3436
  Please be patient β€” each paper takes about 8–10 minutes to process.
3437
 
3438
  This work, developed in collaboration with [TVG@Oxford](https://torrvision.com/index.html) and [UWaterloo](https://uwaterloo.ca/), has been accepted to [NeurIPS 2025 D&B](https://neurips.cc/).
3439
-
3440
- The framework builds upon πŸͺ [CAMEL-ai](https://github.com/camel-ai/camel).
3441
- """)
3442
  # Top-right logos (camel, tvg, waterloo) if available
3443
  gr.HTML(_ui_header_logos_html())
3444
 
 
 
 
3445
  # -------- Input box --------
3446
- # Targeted spacing tweak: reduce the top margin only before the main row
3447
- gr.HTML("<style>#main-row{margin-top:6px!important}</style>")
3448
  with gr.Row(elem_id="main-row"):
3449
  # ========== LEFT: INPUT ==========
3450
  with gr.Column(scale=1):
 
3428
  # Gradio UI
3429
  # =====================
3430
  with gr.Blocks(title="πŸŽ“ Paper2Poster") as iface:
3431
+ # Title + intro with IDs so we can precisely collapse spacing below them
3432
+ gr.Markdown("# πŸŽ“ Paper2Poster", elem_id="title-md")
3433
  gr.Markdown("""
3434
  [Paper](https://arxiv.org/abs/2505.21497) | [GitHub](https://github.com/Paper2Poster/Paper2Poster) | [Project Page](https://paper2poster.github.io/)
3435
 
 
3437
  Please be patient β€” each paper takes about 8–10 minutes to process.
3438
 
3439
  This work, developed in collaboration with [TVG@Oxford](https://torrvision.com/index.html) and [UWaterloo](https://uwaterloo.ca/), has been accepted to [NeurIPS 2025 D&B](https://neurips.cc/).
3440
+ """, elem_id="intro-md")
 
 
3441
  # Top-right logos (camel, tvg, waterloo) if available
3442
  gr.HTML(_ui_header_logos_html())
3443
 
3444
+ # Place the CAMEL line as raw HTML with zero bottom margin to remove extra gap
3445
+ gr.HTML("<div style='margin:4px 0 0 0;line-height:1.25'>The framework builds upon πŸͺ <a href='https://github.com/camel-ai/camel' target='_blank' rel='noopener'>CAMEL-ai</a>.</div>")
3446
+
3447
  # -------- Input box --------
3448
+ # Precise spacing collapse: ensure minimal gap above first row
3449
+ gr.HTML("<style>#main-row{margin-top:2px!important}</style>")
3450
  with gr.Row(elem_id="main-row"):
3451
  # ========== LEFT: INPUT ==========
3452
  with gr.Column(scale=1):