openhands openhands commited on
Commit
24ff7a3
·
1 Parent(s): 40af0d5

Winners by Category: put scores before names

Browse files

- Swap column order so score appears first, then model name
- Update CSS styling for new column order

Co-authored-by: openhands <openhands@all-hands.dev>

Files changed (2) hide show
  1. content.py +14 -14
  2. ui_components.py +2 -2
content.py CHANGED
@@ -1065,28 +1065,28 @@ h3 .header-link-icon {
1065
  background: rgba(255, 225, 101, 0.15);
1066
  }
1067
 
1068
- .winners-unified-table .model-cell {
1069
- white-space: nowrap;
1070
- color: var(--color-text-dark);
1071
- font-weight: 500;
1072
- border-right: none;
1073
- }
1074
-
1075
- .dark .winners-unified-table .model-cell {
1076
- color: #fff;
1077
- }
1078
-
1079
  .winners-unified-table .score-cell {
1080
- text-align: right;
1081
  font-weight: 700;
1082
  color: var(--color-primary-dark);
1083
- padding-right: 12px;
1084
- border-right: 1px solid #eee;
1085
  min-width: 50px;
1086
  }
1087
 
1088
  .dark .winners-unified-table .score-cell {
1089
  color: var(--color-primary-accent);
 
 
 
 
 
 
 
 
 
 
 
 
1090
  border-right-color: var(--color-neutral-700);
1091
  }
1092
 
 
1065
  background: rgba(255, 225, 101, 0.15);
1066
  }
1067
 
 
 
 
 
 
 
 
 
 
 
 
1068
  .winners-unified-table .score-cell {
1069
+ text-align: left;
1070
  font-weight: 700;
1071
  color: var(--color-primary-dark);
1072
+ padding-left: 12px;
 
1073
  min-width: 50px;
1074
  }
1075
 
1076
  .dark .winners-unified-table .score-cell {
1077
  color: var(--color-primary-accent);
1078
+ }
1079
+
1080
+ .winners-unified-table .model-cell {
1081
+ white-space: nowrap;
1082
+ color: var(--color-text-dark);
1083
+ font-weight: 500;
1084
+ padding-right: 12px;
1085
+ border-right: 1px solid #eee;
1086
+ }
1087
+
1088
+ .dark .winners-unified-table .model-cell {
1089
+ color: #fff;
1090
  border-right-color: var(--color-neutral-700);
1091
  }
1092
 
ui_components.py CHANGED
@@ -548,11 +548,11 @@ def create_winners_by_category_html(df: pd.DataFrame, top_n: int = 5) -> str:
548
  rank_suffix = " 🥉"
549
 
550
  html_parts.append(f'''
551
- <td class="model-cell">{model_display}{rank_suffix}</td>
552
  <td class="score-cell">{score:.1f}</td>
 
553
  ''')
554
  else:
555
- html_parts.append('<td class="model-cell">-</td><td class="score-cell">-</td>')
556
 
557
  html_parts.append('</tr>')
558
 
 
548
  rank_suffix = " 🥉"
549
 
550
  html_parts.append(f'''
 
551
  <td class="score-cell">{score:.1f}</td>
552
+ <td class="model-cell">{model_display}{rank_suffix}</td>
553
  ''')
554
  else:
555
+ html_parts.append('<td class="score-cell">-</td><td class="model-cell">-</td>')
556
 
557
  html_parts.append('</tr>')
558