Spaces:
Running
Running
Fix overflowing tables and cell tooltips (#27)
Browse files- content.py +22 -22
- submission.py +1 -2
- ui_components.py +4 -7
content.py
CHANGED
|
@@ -299,28 +299,6 @@ html:not(.dark) #legend-markdown .light-mode-icon,
|
|
| 299 |
#legend-markdown .light-mode-icon, #legend-markdown .dark-mode-icon {
|
| 300 |
display: none;
|
| 301 |
}
|
| 302 |
-
|
| 303 |
-
/*------ Openness label tooltip styles ------*/
|
| 304 |
-
.styler,
|
| 305 |
-
#openness-label-html,
|
| 306 |
-
#agent-tooling-label-html {
|
| 307 |
-
overflow: visible !important;
|
| 308 |
-
}
|
| 309 |
-
/*------ Table cell tooltip styles ------*/
|
| 310 |
-
.wrap.default.full,
|
| 311 |
-
span.wrap[tabindex="0"][role="button"][data-editable="false"] {
|
| 312 |
-
overflow: visible !important;
|
| 313 |
-
}
|
| 314 |
-
.table-container button,
|
| 315 |
-
.table-container table {
|
| 316 |
-
overflow: visible !important;
|
| 317 |
-
}
|
| 318 |
-
/*------ Table column description tooltip styles ------*/
|
| 319 |
-
#legend-markdown,
|
| 320 |
-
#leaderboard-accordion {
|
| 321 |
-
overflow: visible !important;
|
| 322 |
-
}
|
| 323 |
-
|
| 324 |
/*------ Global tooltip styles ------*/
|
| 325 |
.tooltip-icon {
|
| 326 |
display: inline-block;
|
|
@@ -356,6 +334,28 @@ span.wrap[tabindex="0"][role="button"][data-editable="false"] {
|
|
| 356 |
.tooltip-icon:hover::after {
|
| 357 |
opacity: 1;
|
| 358 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 359 |
/* --- inside table tooltips --- */
|
| 360 |
.native-tooltip-icon {
|
| 361 |
cursor: help;
|
|
|
|
| 299 |
#legend-markdown .light-mode-icon, #legend-markdown .dark-mode-icon {
|
| 300 |
display: none;
|
| 301 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 302 |
/*------ Global tooltip styles ------*/
|
| 303 |
.tooltip-icon {
|
| 304 |
display: inline-block;
|
|
|
|
| 334 |
.tooltip-icon:hover::after {
|
| 335 |
opacity: 1;
|
| 336 |
}
|
| 337 |
+
/*------ Openness label tooltip styles ------*/
|
| 338 |
+
.styler,
|
| 339 |
+
#openness-label-html,
|
| 340 |
+
#agent-tooling-label-html {
|
| 341 |
+
overflow: visible !important;
|
| 342 |
+
}
|
| 343 |
+
/*------ Table cell tooltip styles ------*/
|
| 344 |
+
.wrap.default.full,
|
| 345 |
+
span.wrap[tabindex="0"][role="button"][data-editable="false"] {
|
| 346 |
+
overflow: visible !important;
|
| 347 |
+
}
|
| 348 |
+
|
| 349 |
+
.cell-tooltip-icon::after {
|
| 350 |
+
height: fit-content;
|
| 351 |
+
top: 125%;
|
| 352 |
+
}
|
| 353 |
+
/*------ Table column description tooltip styles ------*/
|
| 354 |
+
#legend-markdown,
|
| 355 |
+
#leaderboard-accordion {
|
| 356 |
+
overflow: visible !important;
|
| 357 |
+
}
|
| 358 |
+
|
| 359 |
/* --- inside table tooltips --- */
|
| 360 |
.native-tooltip-icon {
|
| 361 |
cursor: help;
|
submission.py
CHANGED
|
@@ -284,8 +284,7 @@ def add_new_eval(
|
|
| 284 |
openness_label_html = """
|
| 285 |
<div class="form-label-with-tooltip">
|
| 286 |
Openness of Agent
|
| 287 |
-
<span class="tooltip-icon" data-tooltip="
|
| 288 |
-
• Closed: No API or code available
|
| 289 |
• API Available: API available, but no code
|
| 290 |
• Open Source: Code available, but no weights
|
| 291 |
• Open Source + Open Weights: Code and weights available"
|
|
|
|
| 284 |
openness_label_html = """
|
| 285 |
<div class="form-label-with-tooltip">
|
| 286 |
Openness of Agent
|
| 287 |
+
<span class="tooltip-icon" data-tooltip="• Closed: No API or code available
|
|
|
|
| 288 |
• API Available: API available, but no code
|
| 289 |
• Open Source: Code available, but no weights
|
| 290 |
• Open Source + Open Weights: Code and weights available"
|
ui_components.py
CHANGED
|
@@ -162,15 +162,13 @@ legend_markdown = f"""
|
|
| 162 |
<div style="display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; font-size: 14px; padding-bottom: 8px;">
|
| 163 |
|
| 164 |
<div> <!-- Container for the Pareto section -->
|
| 165 |
-
<b>Pareto</b><span class="tooltip-icon" data-tooltip="
|
| 166 |
-
Indicates if agent is on the Pareto frontier
|
| 167 |
">ⓘ</span>
|
| 168 |
<div style="padding-top: 4px;"><span>🏆 On frontier</span></div>
|
| 169 |
</div>
|
| 170 |
|
| 171 |
<div> <!-- Container for the Openness section -->
|
| 172 |
-
<b>Agent Openness</b><span class="tooltip-icon" data-tooltip="
|
| 173 |
-
•Closed: No API or code available
|
| 174 |
•API Available: API available, but no code
|
| 175 |
•Open Source: Code available, but no weights
|
| 176 |
•Open Source + Open Weights: Code and weights available
|
|
@@ -179,8 +177,7 @@ legend_markdown = f"""
|
|
| 179 |
</div>
|
| 180 |
|
| 181 |
<div> <!-- Container for the Tooling section -->
|
| 182 |
-
<b>Agent Tooling</b><span class="tooltip-icon" data-tooltip="
|
| 183 |
-
• Standard: Standard Approach used by the agent
|
| 184 |
• Custom with Standard Search: Standard search used by the agent
|
| 185 |
• Fully Custom: Fully custom tools used by the agent
|
| 186 |
">ⓘ</span>
|
|
@@ -595,7 +592,7 @@ def format_llm_base_with_html(value):
|
|
| 595 |
# Join the list items with a newline character for a clean tooltip
|
| 596 |
tooltip_text = "\n".join(map(str, value))
|
| 597 |
# Return an HTML span with the title attribute for the tooltip
|
| 598 |
-
return f'<span class="tooltip-icon" style="cursor: help;" data-tooltip="{tooltip_text}">{value[0]} (+ {len(value) - 1}) ⓘ</span>'
|
| 599 |
if len(value) == 1:
|
| 600 |
# If only one item, just return that item
|
| 601 |
return value[0]
|
|
|
|
| 162 |
<div style="display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; font-size: 14px; padding-bottom: 8px;">
|
| 163 |
|
| 164 |
<div> <!-- Container for the Pareto section -->
|
| 165 |
+
<b>Pareto</b><span class="tooltip-icon" data-tooltip="Indicates if agent is on the Pareto frontier
|
|
|
|
| 166 |
">ⓘ</span>
|
| 167 |
<div style="padding-top: 4px;"><span>🏆 On frontier</span></div>
|
| 168 |
</div>
|
| 169 |
|
| 170 |
<div> <!-- Container for the Openness section -->
|
| 171 |
+
<b>Agent Openness</b><span class="tooltip-icon" data-tooltip="•Closed: No API or code available
|
|
|
|
| 172 |
•API Available: API available, but no code
|
| 173 |
•Open Source: Code available, but no weights
|
| 174 |
•Open Source + Open Weights: Code and weights available
|
|
|
|
| 177 |
</div>
|
| 178 |
|
| 179 |
<div> <!-- Container for the Tooling section -->
|
| 180 |
+
<b>Agent Tooling</b><span class="tooltip-icon" data-tooltip="• Standard: Standard Approach used by the agent
|
|
|
|
| 181 |
• Custom with Standard Search: Standard search used by the agent
|
| 182 |
• Fully Custom: Fully custom tools used by the agent
|
| 183 |
">ⓘ</span>
|
|
|
|
| 592 |
# Join the list items with a newline character for a clean tooltip
|
| 593 |
tooltip_text = "\n".join(map(str, value))
|
| 594 |
# Return an HTML span with the title attribute for the tooltip
|
| 595 |
+
return f'<span class="tooltip-icon cell-tooltip-icon" style="cursor: help;" data-tooltip="{tooltip_text}">{value[0]} (+ {len(value) - 1}) ⓘ</span>'
|
| 596 |
if len(value) == 1:
|
| 597 |
# If only one item, just return that item
|
| 598 |
return value[0]
|