Michael Rabinovich Cursor commited on
Commit ·
ae4b377
1
Parent(s): 7922a9c
Add missing header logo PNG and tighten title spacing
Browse filesThe deployed app.py already references assets/logo.png (via
_logo_data_uri), but the binary was never committed, so the Space
build crashed with FileNotFoundError. Commit the transparent,
content-cropped wordmark and snug up the title block (smaller logo
height + collapsed flex gap) so it sits directly above the tabs.
Co-authored-by: Cursor <cursoragent@cursor.com>
- app.py +7 -2
- assets/logo.png +0 -0
app.py
CHANGED
|
@@ -994,8 +994,13 @@ def _logo_data_uri() -> str:
|
|
| 994 |
_APP_CSS = (
|
| 995 |
"footer{display:none !important;}"
|
| 996 |
".gradio-container{padding-top:4px !important; padding-bottom:0 !important;}"
|
| 997 |
-
|
| 998 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 999 |
".dark #cgb-title .cgb-logo{filter:invert(1);}"
|
| 1000 |
"@media (prefers-color-scheme: dark){"
|
| 1001 |
"#cgb-title .cgb-logo{filter:invert(1);}}"
|
|
|
|
| 994 |
_APP_CSS = (
|
| 995 |
"footer{display:none !important;}"
|
| 996 |
".gradio-container{padding-top:4px !important; padding-bottom:0 !important;}"
|
| 997 |
+
# Collapse the title block's own box and the flex gap Gradio puts
|
| 998 |
+
# between it and the tab bar so the wordmark sits right above the
|
| 999 |
+
# leaderboard instead of floating with a gap. The negative bottom
|
| 1000 |
+
# margin pulls the tab nav up snug against the logo.
|
| 1001 |
+
"#cgb-title{margin:0 !important;padding:0 !important;min-width:0 !important;}"
|
| 1002 |
+
"#cgb-title .cgb-logo{height:46px;width:auto;display:block;margin:0;}"
|
| 1003 |
+
".gradio-container .tabs{margin-top:-6px !important;}"
|
| 1004 |
".dark #cgb-title .cgb-logo{filter:invert(1);}"
|
| 1005 |
"@media (prefers-color-scheme: dark){"
|
| 1006 |
"#cgb-title .cgb-logo{filter:invert(1);}}"
|
assets/logo.png
ADDED
|