CodexCLI Bot commited on
Commit
22af080
·
1 Parent(s): e2098ef

UI: move header logos to fixed top-right bar; correct emoji placement before CAMEL-ai

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -139,7 +139,17 @@ def _ui_header_logos_html():
139
  continue
140
  if not parts:
141
  return ""
142
- return "<div style='display:flex;justify-content:flex-end;gap:12px;align-items:center;margin:8px 0'>" + "".join(parts) + "</div>"
 
 
 
 
 
 
 
 
 
 
143
 
144
  ## Removed sanitizer per request: do not mutate user-generated TeX
145
 
@@ -2098,7 +2108,7 @@ Please be patient — each paper takes about 8–10 minutes to process.
2098
 
2099
  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/).
2100
 
2101
- 🐪 The framework builds upon [CAMEL-ai](https://github.com/camel-ai/camel).
2102
  """)
2103
  # Top-right logos (camel, tvg, waterloo) if available
2104
  gr.HTML(_ui_header_logos_html())
 
139
  continue
140
  if not parts:
141
  return ""
142
+ # Render as a fixed-position header bar at the top-right so it doesn't push the layout down.
143
+ imgs = "".join(parts)
144
+ return (
145
+ "<style>"
146
+ "#p2p-logo-bar{position:fixed;top:12px;right:16px;display:flex;gap:12px;"
147
+ "align-items:center;z-index:9999}"
148
+ "#p2p-logo-bar img{height:44px;width:auto;object-fit:contain;display:block}"
149
+ "@media (max-width: 768px){#p2p-logo-bar img{height:32px}}"
150
+ "</style>"
151
+ "<div id='p2p-logo-bar'>" + imgs + "</div>"
152
+ )
153
 
154
  ## Removed sanitizer per request: do not mutate user-generated TeX
155
 
 
2108
 
2109
  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/).
2110
 
2111
+ The framework builds upon 🐪 [CAMEL-ai](https://github.com/camel-ai/camel).
2112
  """)
2113
  # Top-right logos (camel, tvg, waterloo) if available
2114
  gr.HTML(_ui_header_logos_html())