CodexCLI Bot commited on
Commit
8c20ff6
·
1 Parent(s): a913558

UI: move header logos further left (right:140px, gap:24px); default conf logo preview uses assets/neurips.png first

Browse files
Files changed (1) hide show
  1. app.py +7 -3
app.py CHANGED
@@ -150,11 +150,11 @@ def _ui_header_logos_html():
150
  continue
151
  if not parts:
152
  return ""
153
- # Fixed-position header bar at top-right; moved left a bit and larger spacing
154
  imgs = "".join(parts)
155
  return (
156
  "<style>"
157
- "#p2p-logo-bar{position:fixed;top:12px;right:28px;display:flex;gap:20px;"
158
  "align-items:center;z-index:9999}"
159
  "#p2p-logo-bar a{display:block;line-height:0}"
160
  "@media (max-width: 768px){#p2p-logo-bar img{height:32px}}"
@@ -164,9 +164,13 @@ def _ui_header_logos_html():
164
 
165
  def _default_conf_logo_path():
166
  """Pick a default conference logo to preview.
167
- Prefer template/logos/right_logo.png, else the first of detected header logos.
 
168
  """
169
  try:
 
 
 
170
  pref = ROOT / "template" / "logos" / "right_logo.png"
171
  if pref.exists():
172
  return pref
 
150
  continue
151
  if not parts:
152
  return ""
153
+ # Fixed-position header bar at top-right; moved further left and larger spacing
154
  imgs = "".join(parts)
155
  return (
156
  "<style>"
157
+ "#p2p-logo-bar{position:fixed;top:12px;right:140px;display:flex;gap:24px;"
158
  "align-items:center;z-index:9999}"
159
  "#p2p-logo-bar a{display:block;line-height:0}"
160
  "@media (max-width: 768px){#p2p-logo-bar img{height:32px}}"
 
164
 
165
  def _default_conf_logo_path():
166
  """Pick a default conference logo to preview.
167
+ Prefer Paper2Poster/assets/neurips.png, else template/logos/right_logo.png,
168
+ else the first of detected header logos.
169
  """
170
  try:
171
+ prefer_assets = ROOT / "Paper2Poster" / "assets" / "neurips.png"
172
+ if prefer_assets.exists():
173
+ return prefer_assets
174
  pref = ROOT / "template" / "logos" / "right_logo.png"
175
  if pref.exists():
176
  return pref