Spaces:
Running
Running
Make leaderboard scrollable
Browse files- index.html +0 -12
- style.css +5 -2
index.html
CHANGED
|
@@ -71,18 +71,6 @@
|
|
| 71 |
<p>Select Open or Closed in the Availability column to show models.</p>
|
| 72 |
</div>
|
| 73 |
</div>
|
| 74 |
-
<div class="table-card">
|
| 75 |
-
<div class="table-scroll">
|
| 76 |
-
<table id="leaderboard-table">
|
| 77 |
-
<thead></thead>
|
| 78 |
-
<tbody></tbody>
|
| 79 |
-
</table>
|
| 80 |
-
</div>
|
| 81 |
-
<div class="empty-state" id="empty-state" hidden>
|
| 82 |
-
<h3>No matching models</h3>
|
| 83 |
-
<p>Select Open or Closed in the Availability column to show models.</p>
|
| 84 |
-
</div>
|
| 85 |
-
</div>
|
| 86 |
<section class="comparison-chart" aria-labelledby="comparison-chart-title">
|
| 87 |
<div class="comparison-chart-heading">
|
| 88 |
<div>
|
|
|
|
| 71 |
<p>Select Open or Closed in the Availability column to show models.</p>
|
| 72 |
</div>
|
| 73 |
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 74 |
<section class="comparison-chart" aria-labelledby="comparison-chart-title">
|
| 75 |
<div class="comparison-chart-heading">
|
| 76 |
<div>
|
style.css
CHANGED
|
@@ -464,7 +464,10 @@ fieldset {
|
|
| 464 |
box-shadow: 0 10px 32px rgba(35, 40, 48, 0.05);
|
| 465 |
}
|
| 466 |
.table-scroll {
|
| 467 |
-
|
|
|
|
|
|
|
|
|
|
| 468 |
}
|
| 469 |
table {
|
| 470 |
width: 100%;
|
|
@@ -1543,4 +1546,4 @@ html[data-theme="dark"] .comparison-availability-dot.closed {
|
|
| 1543 |
display: flex;
|
| 1544 |
align-items: center;
|
| 1545 |
margin-left: auto;
|
| 1546 |
-
}
|
|
|
|
| 464 |
box-shadow: 0 10px 32px rgba(35, 40, 48, 0.05);
|
| 465 |
}
|
| 466 |
.table-scroll {
|
| 467 |
+
/* Header (37px) plus fifteen 37px leaderboard rows. */
|
| 468 |
+
max-height: 592px;
|
| 469 |
+
overflow: auto;
|
| 470 |
+
scrollbar-gutter: stable;
|
| 471 |
}
|
| 472 |
table {
|
| 473 |
width: 100%;
|
|
|
|
| 1546 |
display: flex;
|
| 1547 |
align-items: center;
|
| 1548 |
margin-left: auto;
|
| 1549 |
+
}
|