Skip to content

Commit 1bd2edb

Browse files
committed
run
1 parent 87bc157 commit 1bd2edb

File tree

6 files changed

+79
-34
lines changed

6 files changed

+79
-34
lines changed

package-lock.json

Lines changed: 45 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@
5656
"mathjax-full": "^3.2.2",
5757
"openai": "^4.28.4",
5858
"svelte-carousel": "^1.0.25",
59+
"svelte-headless-table": "^0.18.3",
5960
"svelte-highlight": "^7.9.0",
6061
"svelte-lazy-image": "^0.5.1",
6162
"svelte-multiselect": "^10.0.0",

src/components/Filters.svelte

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,10 +449,15 @@
449449
gap: 0.75rem;
450450
}
451451
452-
.filter, .search-wrapper {
452+
.filter {
453453
width: 100%;
454454
}
455455
456+
/* Hide search/benchmark finder on mobile */
457+
.search-wrapper {
458+
display: none;
459+
}
460+
456461
:global(#filters .multiselect) {
457462
font-size: var(--14px) !important;
458463
height: 2.75rem !important;

src/components/Intro.Agents.svelte

Lines changed: 23 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -221,57 +221,52 @@
221221
@media (max-width: 700px) {
222222
.agent-stage {
223223
flex-direction: row;
224-
flex-wrap: wrap;
224+
flex-wrap: nowrap;
225225
align-items: center;
226226
justify-content: center;
227-
gap: 1rem;
228-
height: auto;
229-
min-height: 60svh;
230-
padding: 1rem;
227+
gap: 0.75rem;
228+
height: 80svh;
229+
padding: 1rem 0.5rem;
231230
}
232231
233232
.agent-box {
234-
width: calc(50% - 0.5rem);
235-
min-width: 140px;
236-
max-width: 180px;
237-
padding: 1.25rem 0.75rem;
233+
flex: 1;
234+
width: auto;
235+
min-width: 0;
236+
max-width: none;
237+
padding: 1rem 0.5rem;
238238
}
239239
240240
.agent-icon {
241-
width: 40px;
242-
height: 40px;
243-
margin-bottom: 0.75rem;
241+
width: clamp(32px, 8vw, 48px);
242+
height: clamp(32px, 8vw, 48px);
243+
margin-bottom: 0.5rem;
244244
}
245245
246246
.agent-name {
247-
font-size: var(--14px);
247+
font-size: clamp(12px, 3vw, 16px);
248+
line-height: 1.2;
248249
}
249250
250251
.agent-framework {
251-
font-size: var(--10px);
252+
font-size: clamp(9px, 2.5vw, 12px);
252253
margin-top: 0.25rem;
253254
}
254255
}
255256
256257
@media (max-width: 400px) {
257-
.agent-box {
258-
width: calc(50% - 0.5rem);
259-
min-width: 120px;
260-
padding: 1rem 0.5rem;
261-
}
262-
263-
.agent-icon {
264-
width: 36px;
265-
height: 36px;
266-
margin-bottom: 0.5rem;
258+
.agent-stage {
259+
gap: 0.5rem;
260+
padding: 1rem 0.25rem;
267261
}
268262
269-
.agent-name {
270-
font-size: var(--12px);
263+
.agent-box {
264+
padding: 0.75rem 0.25rem;
265+
gap: 0.5rem;
271266
}
272267
273-
.agent-framework {
274-
font-size: var(--9px);
268+
.agent-icon {
269+
margin-bottom: 0.25rem;
275270
}
276271
}
277272
</style>

src/components/helpers/Range.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,12 @@
274274
#range-agent-nop {
275275
left: calc(100% - 2rem);
276276
top: 1rem;
277+
z-index: 1001;
277278
}
278279
279280
#range-oracle-nop {
280-
left: 1rem;
281-
top: 2.5rem;
281+
left: 1.5rem;
282+
top: calc(100% - 4rem);
282283
}
283284
284285
.thumb-label p {

src/stores/misc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ export const agentCopyKey = derived(
161161
function calculateDistance(agentSpeedup, oracleSpeedup, agentThresh, oracleThresh) {
162162
if (agentSpeedup === undefined || oracleSpeedup === undefined) return null;
163163

164-
const numerator = (agentThresh * agentSpeedup) - (oracleThresh * oracleSpeedup);
164+
const numerator = (oracleThresh * agentSpeedup) - (agentThresh * oracleSpeedup);
165165
const denominator = Math.sqrt(agentThresh ** 2 + oracleThresh ** 2);
166166

167167
return numerator / denominator;

0 commit comments

Comments
 (0)