Skip to content

Commit 769b430

Browse files
committed
save
1 parent 8863ca6 commit 769b430

File tree

11 files changed

+251
-45
lines changed

11 files changed

+251
-45
lines changed

src/components/AgentAdvantageTable.svelte

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,13 +210,45 @@
210210
padding: 0.5rem 0;
211211
}
212212
213-
@media (max-width: 700px) {
213+
@media (max-width: 900px) {
214214
h4 {
215215
font-size: var(--18px);
216216
}
217217
218218
.advantage-table-wrapper :global(.wx-grid) {
219219
font-size: 14px;
220+
overflow-x: auto;
221+
}
222+
223+
/* Make table horizontally scrollable */
224+
.advantage-table-wrapper :global(.wx-grid-container) {
225+
overflow-x: auto;
226+
-webkit-overflow-scrolling: touch;
227+
}
228+
}
229+
230+
@media (max-width: 700px) {
231+
h4 {
232+
font-size: var(--16px);
233+
}
234+
235+
.advantage-table-wrapper :global(.wx-grid) {
236+
font-size: 12px;
237+
}
238+
239+
/* Reduce column widths for mobile */
240+
.advantage-table-wrapper :global([data-col-id="agent"]) {
241+
min-width: 100px;
242+
font-size: 12px;
243+
}
244+
245+
.advantage-table-wrapper :global(.wx-cell) {
246+
padding: 0.5rem 0.25rem;
247+
}
248+
249+
.advantage-table-wrapper :global(.wx-header-cell) {
250+
padding: 0.75rem 0.25rem;
251+
font-size: 11px;
220252
}
221253
}
222254
</style>

src/components/AgentCard.Nav.svelte

Lines changed: 36 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -117,18 +117,26 @@
117117
<style>
118118
nav {
119119
width: 100%;
120-
overflow-x: hidden;
120+
overflow-x: auto;
121+
-webkit-overflow-scrolling: touch;
121122
position: sticky;
122123
top: 0;
123124
display: flex;
124125
flex-direction: row;
125-
overflow: hidden;
126126
min-height: 5rem;
127+
height: auto;
127128
pointer-events: auto;
128129
cursor: pointer;
129130
z-index: 1000;
130-
background: rgba(24,26,31,0.98);
131+
background: rgba(24,26,31,1);
131132
border-bottom: 1px solid var(--wine-dark-gray);
133+
scrollbar-width: none; /* Firefox */
134+
-ms-overflow-style: none; /* IE and Edge */
135+
}
136+
137+
/* Hide scrollbar for Chrome, Safari and Opera */
138+
nav::-webkit-scrollbar {
139+
display: none;
132140
}
133141
134142
.agent-group {
@@ -198,9 +206,34 @@
198206
transition: all var(--250ms);
199207
}
200208
209+
/* Flex spacers for centering when content fits */
210+
nav::before,
211+
nav::after {
212+
content: "";
213+
flex: 1 0 0;
214+
}
215+
216+
.agent-group {
217+
flex: 0 0 auto; /* don't stretch cards */
218+
scroll-snap-align: center; /* snap each card to center */
219+
}
220+
201221
@media (max-width: 700px) {
222+
nav {
223+
min-height: 4rem;
224+
justify-content: flex-start; /* Remove centering on mobile to avoid white space */
225+
}
226+
227+
/* Remove flex spacers on mobile */
228+
nav::before,
229+
nav::after {
230+
display: none;
231+
}
232+
202233
.agent-group {
203234
min-width: 100px;
235+
margin: 0 0.5rem;
236+
padding: 1rem 0 0.75rem 0;
204237
}
205238
206239
.label-wrapper {
@@ -217,23 +250,5 @@
217250
transition: all var(--250ms);
218251
}
219252
}
220-
nav {
221-
/* existing styles ... */
222-
display: flex;
223-
justify-content: center; /* center when content fits */
224-
scroll-snap-type: x mandatory; /* optional: nice snap feel */
225-
}
226-
227-
/* invisible flex spacers so content is centered when it doesn't overflow */
228-
nav::before,
229-
nav::after {
230-
content: "";
231-
flex: 1 0 0;
232-
}
233-
234-
.agent-group {
235-
flex: 0 0 auto; /* don't stretch cards */
236-
scroll-snap-align: center; /* optional: snap each card to center */
237-
}
238253
239254
</style>

src/components/Filters.svelte

Lines changed: 41 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -421,26 +421,64 @@
421421
display: none;
422422
}
423423
424+
@media(max-width: 900px) {
425+
.select-wrapper {
426+
gap: 0.75rem;
427+
}
428+
429+
.filter, .search-wrapper {
430+
width: calc(50% - 0.375rem);
431+
}
432+
433+
:global(#filters .multiselect) {
434+
font-size: var(--14px) !important;
435+
}
436+
437+
:global([data-svelte-typeahead] input) {
438+
font-size: var(--14px) !important;
439+
}
440+
}
441+
424442
@media(max-width: 700px) {
443+
#filters {
444+
padding: 0.75rem;
445+
}
446+
425447
.select-wrapper {
426-
flex-wrap: wrap;
427-
gap: 0.5rem;
448+
flex-direction: column;
449+
gap: 0.75rem;
428450
}
429451
430452
.filter, .search-wrapper {
431-
width: calc(50% - 0.25rem);
453+
width: 100%;
432454
}
433455
434456
:global(#filters .multiselect) {
435457
font-size: var(--14px) !important;
458+
height: 2.75rem !important;
436459
}
437460
438461
:global([data-svelte-typeahead] input) {
439462
font-size: var(--14px) !important;
463+
height: 2.75rem !important;
440464
}
441465
442466
.steals-sentence {
443467
font-size: var(--14px);
444468
}
445469
}
470+
471+
@media(max-width: 480px) {
472+
.steals-sentence {
473+
font-size: var(--12px);
474+
}
475+
476+
:global(#filters .multiselect) {
477+
font-size: var(--13px) !important;
478+
}
479+
480+
:global([data-svelte-typeahead] input) {
481+
font-size: var(--13px) !important;
482+
}
483+
}
446484
</style>

src/components/Intro.Agents.svelte

Lines changed: 43 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -220,22 +220,58 @@
220220
221221
@media (max-width: 700px) {
222222
.agent-stage {
223-
flex-direction: column;
223+
flex-direction: row;
224+
flex-wrap: wrap;
224225
align-items: center;
225-
gap: 1.5rem;
226+
justify-content: center;
227+
gap: 1rem;
226228
height: auto;
227229
min-height: 60svh;
228-
padding: 2rem;
230+
padding: 1rem;
231+
}
232+
233+
.agent-box {
234+
width: calc(50% - 0.5rem);
235+
min-width: 140px;
236+
max-width: 180px;
237+
padding: 1.25rem 0.75rem;
238+
}
239+
240+
.agent-icon {
241+
width: 40px;
242+
height: 40px;
243+
margin-bottom: 0.75rem;
244+
}
245+
246+
.agent-name {
247+
font-size: var(--14px);
229248
}
230249
250+
.agent-framework {
251+
font-size: var(--10px);
252+
margin-top: 0.25rem;
253+
}
254+
}
255+
256+
@media (max-width: 400px) {
231257
.agent-box {
232-
width: 80vw;
233-
max-width: 300px;
258+
width: calc(50% - 0.5rem);
259+
min-width: 120px;
260+
padding: 1rem 0.5rem;
234261
}
235262
236263
.agent-icon {
237-
width: 56px;
238-
height: 56px;
264+
width: 36px;
265+
height: 36px;
266+
margin-bottom: 0.5rem;
267+
}
268+
269+
.agent-name {
270+
font-size: var(--12px);
271+
}
272+
273+
.agent-framework {
274+
font-size: var(--9px);
239275
}
240276
}
241277
</style>

src/components/Leaderboard.svelte

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,4 +255,31 @@
255255
font-size: var(--12px);
256256
}
257257
}
258+
259+
@media (max-width: 480px) {
260+
h2 {
261+
font-size: var(--20px);
262+
}
263+
264+
.description {
265+
font-size: var(--13px);
266+
}
267+
268+
th, td {
269+
padding: 0.4rem 0.2rem;
270+
font-size: var(--10px);
271+
}
272+
273+
.agent-name {
274+
font-size: var(--11px);
275+
}
276+
277+
.score-cell {
278+
font-size: var(--10px);
279+
}
280+
281+
.overall-cell {
282+
font-size: var(--12px);
283+
}
284+
}
258285
</style>

0 commit comments

Comments
 (0)