CodexCLI Bot commited on
Commit
6241703
·
1 Parent(s): 05756ea

UI: revert global margin tweaks; apply targeted spacing by setting elem_id=main-row and shrinking its top margin

Browse files
Files changed (1) hide show
  1. app.py +3 -11
app.py CHANGED
@@ -3439,21 +3439,13 @@ This work, developed in collaboration with [TVG@Oxford](https://torrvision.com/i
3439
 
3440
  The framework builds upon 🐪 [CAMEL-ai](https://github.com/camel-ai/camel).
3441
  """)
3442
- # Compact global spacing to reduce gap between header and inputs
3443
- gr.HTML(
3444
- "<style>"
3445
- ".gradio-container .prose h1{margin-bottom:0.4rem!important;}"
3446
- ".gradio-container .prose p{margin:0.2rem 0!important;}"
3447
- ".gradio-container .gr-row{margin-top:0.25rem!important;}"
3448
- ".gradio-container .gr-accordion{margin-top:0.25rem!important;}"
3449
- "</style>"
3450
- )
3451
-
3452
  # Top-right logos (camel, tvg, waterloo) if available
3453
  gr.HTML(_ui_header_logos_html())
3454
 
3455
  # -------- Input box --------
3456
- with gr.Row():
 
 
3457
  # ========== LEFT: INPUT ==========
3458
  with gr.Column(scale=1):
3459
  with gr.Accordion("Input", open=True):
 
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):
3451
  with gr.Accordion("Input", open=True):